File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -342,8 +342,12 @@ void SystemTask::Work() {
342
342
if (settingsController.GetNotificationStatus () != Controllers::Settings::Notification::Sleep &&
343
343
settingsController.GetChimeOption () == Controllers::Settings::ChimesOption::Hours &&
344
344
alarmController.State () != AlarmController::AlarmState::Alerting) {
345
+ // if sleeping, we can't send a chime to displayApp yet (SPI flash switched off)
346
+ // request running first and repush the chime message
345
347
if (state == SystemTaskState::Sleeping) {
346
348
GoToRunning ();
349
+ PushMessage (msg);
350
+ } else {
347
351
displayApp.PushMessage (Pinetime::Applications::Display::Messages::Chime);
348
352
}
349
353
}
@@ -353,8 +357,12 @@ void SystemTask::Work() {
353
357
if (settingsController.GetNotificationStatus () != Controllers::Settings::Notification::Sleep &&
354
358
settingsController.GetChimeOption () == Controllers::Settings::ChimesOption::HalfHours &&
355
359
alarmController.State () != AlarmController::AlarmState::Alerting) {
360
+ // if sleeping, we can't send a chime to displayApp yet (SPI flash switched off)
361
+ // request running first and repush the chime message
356
362
if (state == SystemTaskState::Sleeping) {
357
363
GoToRunning ();
364
+ PushMessage (msg);
365
+ } else {
358
366
displayApp.PushMessage (Pinetime::Applications::Display::Messages::Chime);
359
367
}
360
368
}
You can’t perform that action at this time.
0 commit comments