Adds enum class for chimes option
This commit is contained in:
parent
7a0f72ed8b
commit
15c3807a76
3 changed files with 21 additions and 12 deletions
|
|
@ -405,7 +405,7 @@ void SystemTask::Work() {
|
|||
break;
|
||||
case Messages::OnNewHour:
|
||||
using Pinetime::Controllers::AlarmController;
|
||||
if (settingsController.GetChimesState() == 1 && alarmController.State() != AlarmController::AlarmState::Alerting) {
|
||||
if (settingsController.GetChimeOption() == Controllers::Settings::ChimesOption::Hours && alarmController.State() != AlarmController::AlarmState::Alerting) {
|
||||
if (isSleeping && !isWakingUp) {
|
||||
GoToRunning();
|
||||
displayApp.PushMessage(Pinetime::Applications::Display::Messages::Clock);
|
||||
|
|
@ -415,7 +415,7 @@ void SystemTask::Work() {
|
|||
break;
|
||||
case Messages::OnNewHalfHour:
|
||||
using Pinetime::Controllers::AlarmController;
|
||||
if (settingsController.GetChimesState() == 2 && alarmController.State() != AlarmController::AlarmState::Alerting) {
|
||||
if (settingsController.GetChimeOption() == Controllers::Settings::ChimesOption::HalfHours && alarmController.State() != AlarmController::AlarmState::Alerting) {
|
||||
if (isSleeping && !isWakingUp) {
|
||||
GoToRunning();
|
||||
displayApp.PushMessage(Pinetime::Applications::Display::Messages::Clock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue