Author: minacode <minamoto9@web.de>
format
src/systemtask/SystemTask.cpp | 20 +++++++++-----------
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 169eaa05f570d36d0f92efa445d16902355af91d..e45ffe8bd42fa4bf7ccf056f5c48f5e3e43ef6aa 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -424,17 +424,15 @@ break; case Messages::BatteryPercentageUpdated: nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining()); break; - case Messages::LowBattery: - { - Pinetime::Controllers::NotificationManager::Notification notif; - std::array<char, 101> message {"Low Battery\0Low Battery\0"}; - notif.message = message; - notif.size = 25; - notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert; - notificationManager.Push(std::move(notif)); - PushMessage(Messages::OnNewNotification); - } - break; + case Messages::LowBattery: { + Pinetime::Controllers::NotificationManager::Notification notif; + std::array<char, 101> message {"Low Battery\0Low Battery\0"}; + notif.message = message; + notif.size = 25; + notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert; + notificationManager.Push(std::move(notif)); + PushMessage(Messages::OnNewNotification); + } break; case Messages::OnPairing: if (state == SystemTaskState::Sleeping) { GoToRunning();