summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2022-11-15 11:05:23 -0600
committerGitHub <noreply@github.com>2022-11-15 11:05:23 -0600
commit2455a922c6c62dcb94106cef7214cf3f28c3ce55 (patch)
tree68313d97819db6e211ecacec578dfa878f4a792d
parentc149fef92da97e0ce87534e357075e39c776e15d (diff)
parent4f66e29b615e9a60c3da3b52dc51958e0e2b662f (diff)
downloadSensor-Watch-2455a922c6c62dcb94106cef7214cf3f28c3ce55.tar.gz
Sensor-Watch-2455a922c6c62dcb94106cef7214cf3f28c3ce55.tar.bz2
Sensor-Watch-2455a922c6c62dcb94106cef7214cf3f28c3ce55.zip
Merge pull request #133 from wryun/set-indicator-on-reactivate
Set bell indicator on reactivating countdown/tomato faces
-rw-r--r--movement/watch_faces/complication/countdown_face.c1
-rw-r--r--movement/watch_faces/complication/tomato_face.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/movement/watch_faces/complication/countdown_face.c b/movement/watch_faces/complication/countdown_face.c
index 194006b1..92400e66 100644
--- a/movement/watch_faces/complication/countdown_face.c
+++ b/movement/watch_faces/complication/countdown_face.c
@@ -132,6 +132,7 @@ void countdown_face_activate(movement_settings_t *settings, void *context) {
if(state->mode == cd_running) {
watch_date_time now = watch_rtc_get_date_time();
state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
+ watch_set_indicator(WATCH_INDICATOR_BELL);
}
}
diff --git a/movement/watch_faces/complication/tomato_face.c b/movement/watch_faces/complication/tomato_face.c
index 37798daf..ed5554f2 100644
--- a/movement/watch_faces/complication/tomato_face.c
+++ b/movement/watch_faces/complication/tomato_face.c
@@ -124,6 +124,7 @@ void tomato_face_activate(movement_settings_t *settings, void *context) {
if (state->mode == tomato_run) {
watch_date_time now = watch_rtc_get_date_time();
state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
+ watch_set_indicator(WATCH_INDICATOR_BELL);
}
watch_set_colon();
}