summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-03-31 12:35:17 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-03-31 12:35:17 (GMT)
commit04dd0c5fe0c696c815b0df1243c1003cd4464dbb (patch)
tree9bedc44c956ad18adb07f664397500667fce910d /src/systemtask/SystemTask.cpp
parent043517f85124810310e5a854fb02b52fb9feccb3 (diff)
add back chimes and flashlight
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
-rw-r--r--src/systemtask/SystemTask.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp
index c121808..7a0d151 100644
--- a/src/systemtask/SystemTask.cpp
+++ b/src/systemtask/SystemTask.cpp
@@ -342,6 +342,24 @@ void SystemTask::Work() {
// Remember we'll have to reset the counter next time we're awake
stepCounterMustBeReset = true;
break;
+ case Messages::OnNewHour:
+ if (settingsController.GetChimeOption() == Controllers::Settings::ChimesOption::Hours) {
+ if (isSleeping && !isWakingUp) {
+ GoToRunning();
+ displayApp.PushMessage(Pinetime::Applications::Display::Messages::Clock);
+ }
+ motorController.RunForDuration(22);
+ }
+ break;
+ case Messages::OnChime:
+ if (settingsController.GetChimeOption() == Controllers::Settings::ChimesOption::HalfHours) {
+ if (false && isSleeping && !isWakingUp) {
+ GoToRunning();
+ displayApp.PushMessage(Pinetime::Applications::Display::Messages::Clock);
+ }
+ motorController.RunForDuration(11);
+ }
+ break;
case Messages::OnChargingEvent:
batteryController.ReadPowerState();
motorController.RunForDuration(15);