소스 검색

Stopped at boot up means going to long sleep. Fixed long sleep would result in a backup each time

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

+ 2
- 2
GpsTracker/Core.cpp 파일 보기

@@ -8,7 +8,7 @@ using namespace utils;

namespace core {
uint16_t sleepTime = SLEEP_DEFAULT_TIME_SECONDS;
uint8_t stoppedInARow = 0;
uint8_t stoppedInARow = SLEEP_DEFAULT_STOPPED_THRESHOLD - 1;

void main() {
bool forceBackup = false;
@@ -32,7 +32,7 @@ namespace core {
if (stoppedInARow < SLEEP_DEFAULT_STOPPED_THRESHOLD) {
result = SLEEP_DEFAULT_PAUSING_TIME_SECONDS;
}
else goingLongSleep = true;
else if(stoppedInARow == SLEEP_DEFAULT_STOPPED_THRESHOLD) goingLongSleep = true;
}
else stoppedInARow = 0;



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