소스 검색

Reworked code to fix missing network::powerOff in notifyFailures

tags/v1.2.0
Bertrand Lemasle 6 년 전
부모
커밋
d0ef217f75
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. +3
    -5
      GpsTracker/Core.cpp

+ 3
- 5
GpsTracker/Core.cpp 파일 보기

@@ -61,13 +61,11 @@ namespace core {
}

config_t* config = &config::main::value;
if (!network::sendSms(config->contactPhone, buffer)) {
NOTICE_MSG("notifyFailure", "SMS not sent !");
return 0;
}
bool sent = network::sendSms(config->contactPhone, buffer);
if (!sent) NOTICE_MSG("notifyFailure", "SMS not sent !");

network::powerOff();
return triggered;
return sent ? triggered : 0;
}

void updateRtcTime() {


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