Переглянути джерело

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


Завантаження…
Відмінити
Зберегти