Skip to content

Commit

Permalink
applied clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveAmor committed Nov 7, 2021
1 parent 5932391 commit 37de10f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/datetime/DateTimeController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -116,4 +116,3 @@ const char* DateTime::MonthShortToStringLow(Months month) {
void DateTime::Register(Pinetime::System::SystemTask* systemTask) {
this->systemTask = systemTask;
}

0 comments on commit 37de10f

Please sign in to comment.