Add clearing of noinit segment on bad word

Code readability cleanup
This commit is contained in:
Tim Keller
2021-08-19 00:44:22 +00:00
parent 16502b788f
commit 2dd7b8ba2c
3 changed files with 12 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ void DateTime::UpdateTime(uint32_t systickCounter) {
} else if (hour != 0) {
isMidnightAlreadyNotified = false;
}
BackUpTime = currentDateTime;
NoInit_BackUpTime = currentDateTime;
}
const char* DateTime::MonthShortToString() {

View File

@@ -2,7 +2,7 @@
#include <cstdint>
#include <chrono>
extern std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> BackUpTime;
extern std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> NoInit_BackUpTime;
namespace Pinetime {
namespace System {