浏览代码

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() {


正在加载...
取消
保存