From b6d0696534b69036ee7b7b8ce8a35e76c343a20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kolac=C3=AD?= Date: Mon, 28 Dec 2020 13:18:37 +0100 Subject: [PATCH] Define bootCount as unsigned int MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin KolacĂ­ --- Board320_240.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Board320_240.cpp b/Board320_240.cpp index 6a3a145..472a9f3 100644 --- a/Board320_240.cpp +++ b/Board320_240.cpp @@ -11,7 +11,7 @@ #include #include "SIM800L.h" -RTC_DATA_ATTR int bootCount = 0; +RTC_DATA_ATTR unsigned int bootCount = 0; /** Init board @@ -32,6 +32,7 @@ void Board320_240::initBoard() { liveData->params.chargingStartTime = liveData->params.currentTime = mktime(&now); ++bootCount; + syslog->print("Boot count: "); syslog->println(bootCount); }