Преглед изворни кода

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

tags/v1.2.0
Bertrand Lemasle пре 7 година
родитељ
комит
da9f958b9a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. +4
    -0
      GpsTracker/Hardware.cpp

+ 4
- 0
GpsTracker/Hardware.cpp Прегледај датотеку

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


Loading…
Откажи
Сачувај