Explorar el Código

Fixed power off commands being issued on a powered off device force waiting for timeouts

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

+ 4
- 0
GpsTracker/Hardware.cpp Ver fichero

@@ -55,6 +55,8 @@ namespace hardware {
}

void gpsPowerOff() {
if (!device.powered()) return;

VERBOSE("gpsPowerOff");
device.disableGps();
powerOffIfUnused();
@@ -67,6 +69,8 @@ namespace hardware {
}

void networkPowerOff() {
if (!device.powered()) return;

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


Cargando…
Cancelar
Guardar