Add clearing of noinit segment on bad word
Code readability cleanup
This commit is contained in:
@@ -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() {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user