This commit is contained in:
minacode 2022-10-03 13:16:35 +02:00 committed by JF
parent ccc8cee07a
commit 5f5c771752

View File

@ -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();