applied clang-format

This commit is contained in:
SteveAmor 2021-11-07 12:10:23 +00:00
parent 5932391c8b
commit 37de10f47d

View File

@ -75,17 +75,17 @@ void DateTime::UpdateTime(uint32_t systickCounter) {
minute = time.minutes().count();
second = time.seconds().count();
if(minute == 0 and not isHourAlreadyNotified) {
if (minute == 0 and not isHourAlreadyNotified) {
isHourAlreadyNotified = true;
if(systemTask != nullptr)
if (systemTask != nullptr)
systemTask->PushMessage(System::Messages::OnNewHour);
} else if (minute != 0) {
isHourAlreadyNotified = false;
}
if((minute == 0 or minute == 30) and not isHalfHourAlreadyNotified) {
if ((minute == 0 or minute == 30) and not isHalfHourAlreadyNotified) {
isHalfHourAlreadyNotified = true;
if(systemTask != nullptr)
if (systemTask != nullptr)
systemTask->PushMessage(System::Messages::OnNewHalfHour);
} else if (minute != 0 and minute != 30) {
isHalfHourAlreadyNotified = false;
@ -116,4 +116,3 @@ const char* DateTime::MonthShortToStringLow(Months month) {
void DateTime::Register(Pinetime::System::SystemTask* systemTask) {
this->systemTask = systemTask;
}