浏览代码

Gave some more space for the "no network" bail out

tags/v1.2.0
Bertrand Lemasle 7 年前
父节点
当前提交
e77f5aac48
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      GpsTracker/Network.cpp

+ 3
- 1
GpsTracker/Network.cpp 查看文件

@@ -11,6 +11,8 @@
namespace network {

SIM808RegistrationStatus waitForRegistered(uint32_t timeout) {
VERBOSE("waitForRegistered");

SIM808RegistrationStatus currentStatus;
uint8_t noNetwork = 0;

@@ -23,7 +25,7 @@ namespace network {
if (report.ssri == 0) noNetwork++;
else noNetwork = 0;
if (noNetwork > 3) {
if (noNetwork > 10) {
VERBOSE_MSG("waitForRegistered", "No signal");
break; //after a while, not network really means no network. Bailing out
}


正在加载...
取消
保存