Explorar el Código

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

tags/v1.2.0
Bertrand Lemasle hace 7 años
padre
commit
00f5660f52
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      GpsTracker/Hardware.cpp

+ 2
- 1
GpsTracker/Hardware.cpp Ver fichero

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


Cargando…
Cancelar
Guardar