format
This commit is contained in:
parent
ccc8cee07a
commit
5f5c771752
|
@ -424,8 +424,7 @@ void SystemTask::Work() {
|
||||||
case Messages::BatteryPercentageUpdated:
|
case Messages::BatteryPercentageUpdated:
|
||||||
nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining());
|
nimbleController.NotifyBatteryLevel(batteryController.PercentRemaining());
|
||||||
break;
|
break;
|
||||||
case Messages::LowBattery:
|
case Messages::LowBattery: {
|
||||||
{
|
|
||||||
Pinetime::Controllers::NotificationManager::Notification notif;
|
Pinetime::Controllers::NotificationManager::Notification notif;
|
||||||
std::array<char, 101> message {"Low Battery\0Low Battery\0"};
|
std::array<char, 101> message {"Low Battery\0Low Battery\0"};
|
||||||
notif.message = message;
|
notif.message = message;
|
||||||
|
@ -433,8 +432,7 @@ void SystemTask::Work() {
|
||||||
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
notif.category = Pinetime::Controllers::NotificationManager::Categories::SimpleAlert;
|
||||||
notificationManager.Push(std::move(notif));
|
notificationManager.Push(std::move(notif));
|
||||||
PushMessage(Messages::OnNewNotification);
|
PushMessage(Messages::OnNewNotification);
|
||||||
}
|
} break;
|
||||||
break;
|
|
||||||
case Messages::OnPairing:
|
case Messages::OnPairing:
|
||||||
if (state == SystemTaskState::Sleeping) {
|
if (state == SystemTaskState::Sleeping) {
|
||||||
GoToRunning();
|
GoToRunning();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user