applied clang-format
This commit is contained in:
parent
5932391c8b
commit
37de10f47d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user