Skip to content

Commit

Permalink
alarming_today bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voloved committed Dec 26, 2024
1 parent c88c1e8 commit 59a2757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion movement/watch_faces/complication/alarm_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ static void _alarm_update_alarm_enabled(movement_settings_t *settings, alarm_sta
now_init = true;
weekday_idx = _get_weekday_idx(now);
now_minutes_of_day = now.unit.hour * 60 + now.unit.minute;
alarming_today = alarm_minutes_of_day >= now_minutes_of_day;
}
alarm_minutes_of_day = state->alarm[i].hour * 60 + state->alarm[i].minute;
alarming_today = alarm_minutes_of_day >= now_minutes_of_day;
// no more shortcuts: check days and times for all possible cases...
if ((state->alarm[i].day == weekday_idx && alarming_today)
|| ((weekday_idx + 1) % 7 == state->alarm[i].day && !alarming_today)
Expand Down

0 comments on commit 59a2757

Please sign in to comment.