Przeglądaj źródła

Fixed Gprs being disabled after CFUN has been set to the minimum

tags/v1.2.0
Bertrand Lemasle 7 lat temu
rodzic
commit
00f5660f52
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      GpsTracker/Hardware.cpp

+ 2
- 1
GpsTracker/Hardware.cpp Wyświetl plik

@@ -45,6 +45,7 @@ namespace hardware {
VERBOSE("setup");
simSerial.begin(SIM808_BAUDRATE);
device.begin(simSerial);
powerOff(); //ensure powerOff on start
}

void gpsPowerOn() {
@@ -67,8 +68,8 @@ namespace hardware {

void networkPowerOff() {
VERBOSE("networkPowerOff");
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM);
device.disableGprs();
device.setPhoneFunctionality(SIM808_PHONE_FUNCTIONALITY::MINIMUM);

powerOffIfUnused();
}


||||||
x
 
000:0
Ładowanie…
Anuluj
Zapisz