Commit Graph
7 Commits
Author SHA1 Message Date
Konrad RieckandClaude Sonnet 5 eacb6de737 Deduplicate month-length table in deadline_face
_increment_date() kept its own copy of the days-per-month table
and leap-year check, duplicating _days_in_month() in the same
file. Two sources of truth is how the July day-count typo went
unnoticed. Call _days_in_month() directly instead, leaving one
table in the file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSucp94GA31sshe5AjvSzQ
2026-07-27 20:41:36 +02:00
Konrad RieckandClaude Sonnet 5 0b7ea662fe Fix day-increment overflow check in deadline_face settings
date_time.unit.day is a 5-bit bitfield (max 31). Incrementing 31
directly in the bitfield wrapped to 0 via truncation before the
day > days_in_month bounds check ever ran, so the overflow was
never caught. The result decoded as "day 0" of the current month,
i.e. the last day of the previous month, silently rolling the
displayed date backwards (e.g. Aug 31 -> Jul 31 -> Jun 30).

Compute the incremented day in a plain uint8_t local first, compare
it against the month length, and only then write the final value
into the bitfield.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSucp94GA31sshe5AjvSzQ
2026-07-27 20:40:21 +02:00
Konrad RieckandClaude Sonnet 5 8913758a24 Fix wrong July day count in deadline_face settings table
The local days_in_month table in _increment_date() listed July as
having 30 days instead of 31, diverging from the correct table in
_days_in_month(). This made July 31 unreachable when incrementing
the day field in settings mode.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSucp94GA31sshe5AjvSzQ
2026-07-27 20:39:30 +02:00
Alessandro Genova cb05585c15 Fix faces that relied on watch_buzzer_play_note being blocking 2026-01-02 20:07:56 -05:00
oliverpool f95cd68b25 deadline_face: move description to .h file
See #152
2025-11-28 10:10:35 +01:00
Ante VukorepaandJoey Castillo 3e4c6f2363 Make deadline face respect button volumes
Just blindly replaced watch_buzzer_play_note with watch_buzzer_play_note_with_volume
2025-11-18 11:58:50 -05:00
1954944d8d Port of deadline face (#48)
* port of deadline face

* removed beep type enum from header

---------

Co-authored-by: Joey Castillo <joeycastillo@utexas.edu>
2025-08-03 13:03:12 -04:00