diff options
author | TheOnePerson <a.nebinger@web.de> | 2023-01-20 21:54:00 +0100 |
---|---|---|
committer | TheOnePerson <a.nebinger@web.de> | 2023-01-20 21:54:00 +0100 |
commit | c27b63487bcef57472a6404974e83369458635a2 (patch) | |
tree | be26d37109e9f742559d5334a24aa9a561662af5 | |
parent | 5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116 (diff) | |
download | Sensor-Watch-c27b63487bcef57472a6404974e83369458635a2.tar.gz Sensor-Watch-c27b63487bcef57472a6404974e83369458635a2.tar.bz2 Sensor-Watch-c27b63487bcef57472a6404974e83369458635a2.zip |
alarm: fix bell indicator not showing up on fridays
-rw-r--r-- | movement/watch_faces/complication/alarm_face.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/movement/watch_faces/complication/alarm_face.c b/movement/watch_faces/complication/alarm_face.c index 5ad3976c..52a6c542 100644 --- a/movement/watch_faces/complication/alarm_face.c +++ b/movement/watch_faces/complication/alarm_face.c @@ -133,7 +133,7 @@ static void _alarm_face_draw(movement_settings_t *settings, alarm_state_t *state else { if (state->alarm[state->alarm_idx].beeps == 0) watch_display_character('o', _blink_idx[alarm_setting_idx_beeps]); - else + else watch_display_character(state->alarm[state->alarm_idx].beeps + 48, _blink_idx[alarm_setting_idx_beeps]); } } @@ -182,7 +182,7 @@ static void _alarm_update_alarm_enabled(movement_settings_t *settings, alarm_sta if ((state->alarm[i].day == weekday_idx && alarm_minutes_of_day >= now_minutes_of_day) || ((weekday_idx + 1) % 7 == state->alarm[i].day && alarm_minutes_of_day <= now_minutes_of_day) || (state->alarm[i].day == ALARM_DAY_WORKDAY && (weekday_idx < 4 - || (weekday_idx == 5 && alarm_minutes_of_day >= now_minutes_of_day) + || (weekday_idx == 4 && alarm_minutes_of_day >= now_minutes_of_day) || (weekday_idx == 6 && alarm_minutes_of_day <= now_minutes_of_day))) || (state->alarm[i].day == ALARM_DAY_WEEKEND && (weekday_idx == 5 || (weekday_idx == 6 && alarm_minutes_of_day >= now_minutes_of_day) @@ -448,7 +448,7 @@ bool alarm_face_loop(movement_event_t event, movement_settings_t *settings, void movement_move_to_face(0); break; default: - break; + break; } return true; |