Procházet zdrojové kódy

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

tags/v1.2.0
Bertrand Lemasle před 7 roky
rodič
revize
00f5660f52
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      GpsTracker/Hardware.cpp

+ 2
- 1
GpsTracker/Hardware.cpp Zobrazit soubor

@@ -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();
}


Načítá se…
Zrušit
Uložit