summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorminacode <minamoto9@web.de>2022-10-03 13:16:35 +0200
committerJF <JF002@users.noreply.github.com>2022-12-27 12:13:52 +0100
commit5f5c771752a80dcd64e684b1f10b45f297763d1f (patch)
treef2581b1ba48ae1534b7327f2c933fd9bd177ecb1 /src
parentccc8cee07a3a702b31ab3a0f2f93950f0d176198 (diff)
format
Diffstat (limited to 'src')
-rw-r--r--src/systemtask/SystemTask.cpp20
1 files 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<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();