applied clang-format

This commit is contained in:
SteveAmor 2021-11-07 12:10:23 +00:00
parent 5932391c8b
commit 37de10f47d
1 changed files with 4 additions and 5 deletions

View File

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