ソースを参照

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


読み込み中…
キャンセル
保存