diff options
-rw-r--r-- | movement/watch_faces/complication/alarm_face.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/movement/watch_faces/complication/alarm_face.c b/movement/watch_faces/complication/alarm_face.c index a871452d..9acf5899 100644 --- a/movement/watch_faces/complication/alarm_face.c +++ b/movement/watch_faces/complication/alarm_face.c @@ -182,11 +182,11 @@ 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 = 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) - || (weekday_idx = 4 && alarm_minutes_of_day <= now_minutes_of_day)))) { + || (weekday_idx == 5 && 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) + || (weekday_idx == 4 && alarm_minutes_of_day <= now_minutes_of_day)))) { active_alarms = true; break; } |