Alarm: keep ringing until stopped or snoozed, and go loud a minute in #7

Merged
audrow merged 1 commit from alarm-keeps-ringing into main 2026-11-07 17:01:53 -06:00
Owner

Features

Alarm keeps ringing and goes loud a minute in

Found on the CoreS3: an unanswered alarm went quiet as soon as the clock left the alarm minute. It only went loud once the clock's seconds passed Soft for, so with Soft for at 60 s it never got loud.

  • Doesn't give up: rings until Stop, Snooze or turning the alarm off. A snooze ring keeps going the same way.
  • Gets loud on time: Soft for now counts from when the ring started, so it switches to loud that many seconds in, however long the ring has gone on.
  • One minute soft by default: Soft for now defaults to 60 s (was 30 s). Saved settings keep their value.
  • A snooze is used once: if a snooze ring runs past its minute, the snooze is cleared, so it can't ring again the next day.

Tests

  • Unit tests: an unanswered ring is still loud at 7:01 and at 7:45. It's soft at 59 s and loud at 60 s with the default. A ring at 23:59 is still loud after midnight. A snooze ring is timed from 7:09 and uses up the snooze once it runs past 7:10.
  • Firmware tests: "snooze by button" now waits ~63 s, checks the alarm is still ringing, then checks it went loud. "Unanswered snooze" now keeps ringing past its minute, clears the snooze, and doesn't come back the next day after Stop.
  • Screens: Alarm sound shows Soft for 60 s at all three sizes.
  • Simulator: sim/clock.wasm was rebuilt with the pinned Zig 0.16.0. Built from main it's byte-identical to the committed file, so CI's match check should pass. The smoke test passes.
  • CoreS3: pio run builds. This exact build hasn't been flashed to the device yet.

Feedback from the maintainer

Alarm keeps ringing and goes loud a minute in

  • Don't give up on an unanswered alarm
  • Go loud after about a minute

🤖 Generated with Claude Code

## Features ### Alarm keeps ringing and goes loud a minute in Found on the CoreS3: an unanswered alarm went quiet as soon as the clock left the alarm minute. It only went loud once the clock's *seconds* passed **Soft for**, so with Soft for at 60 s it never got loud. - **Doesn't give up:** rings until **Stop**, **Snooze** or turning the alarm off. A snooze ring keeps going the same way. - **Gets loud on time:** **Soft for** now counts from when the ring started, so it switches to loud that many seconds in, however long the ring has gone on. - **One minute soft by default:** **Soft for** now defaults to 60 s (was 30 s). Saved settings keep their value. - **A snooze is used once:** if a snooze ring runs past its minute, the snooze is cleared, so it can't ring again the next day. ## Tests - **Unit tests:** an unanswered ring is still loud at 7:01 and at 7:45. It's soft at 59 s and loud at 60 s with the default. A ring at 23:59 is still loud after midnight. A snooze ring is timed from 7:09 and uses up the snooze once it runs past 7:10. - **Firmware tests:** "snooze by button" now waits ~63 s, checks the alarm is still ringing, then checks it went loud. "Unanswered snooze" now keeps ringing past its minute, clears the snooze, and doesn't come back the next day after Stop. - **Screens:** Alarm sound shows *Soft for 60 s* at all three sizes. - **Simulator:** `sim/clock.wasm` was rebuilt with the pinned Zig 0.16.0. Built from `main` it's byte-identical to the committed file, so CI's match check should pass. The smoke test passes. - **CoreS3:** `pio run` builds. This exact build hasn't been flashed to the device yet. ## Feedback from the maintainer ### Alarm keeps ringing and goes loud a minute in - [x] Don't give up on an unanswered alarm - [x] Go loud after about a minute 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alarm: keep ringing until stopped or snoozed, and go loud a minute in
All checks were successful
host / test (push) Successful in 9s
host / test (pull_request) Successful in 11s
host / simulator (push) Successful in 46s
host / simulator (pull_request) Successful in 1m4s
host / firmware (pull_request) Successful in 8m16s
host / firmware (push) Successful in 8m28s
44aab5dc0b
An unanswered alarm used to go quiet when the clock left the alarm minute,
and it only went loud once the clock's seconds passed 'Soft for', so a
60 s setting never got loud at all. It now rings until Stop, Snooze or
turning the alarm off, and 'Soft for' counts from when the ring started.
'Soft for' now defaults to 60 s. A snooze ring that runs past its minute
uses up the snooze, so it can't ring again the next day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audrow merged commit fa1d64fa8d into main 2026-11-07 17:01:53 -06:00
Sign in to join this conversation.
No description provided.