소스 검색

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


불러오는 중...
취소
저장