From 5f5c771752a80dcd64e684b1f10b45f297763d1f Mon Sep 17 00:00:00 2001 From: minacode Date: Mon, 3 Oct 2022 13:16:35 +0200 Subject: [PATCH] format --- src/systemtask/SystemTask.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 169eaa05..e45ffe8b 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -424,17 +424,15 @@ void SystemTask::Work() { case Messages::BatteryPercentageUpdated: nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining()); break; - case Messages::LowBattery: - { - Pinetime::Controllers::NotificationManager::Notification notif; - std::array 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 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();