]> git.earman.xyz Git - sensor-watch.git/commit
faces/clock: clear segments if not in 024h mode
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Mon, 16 Sep 2024 18:34:19 +0000 (15:34 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Mon, 16 Sep 2024 18:54:09 +0000 (15:54 -0300)
commitea5efb4d828bd5ef588baa5969400ba59d9e548c
tree683224736da08d366c4aa472a14807558897dbc4
parentf2479bee4f0634fc7325f73858350b5f2778d1fe
faces/clock: clear segments if not in 024h mode

There was an issue where the clock's display would remain in 024h mode
even after switching back to 12h/24h mode because it only took into
account the leading zero bit, whose value is meaningless unless the
24h mode bit is also set.

The issue is fixed by taking both bits into account.

Closes #476.

Reported-by: CarpeNoctem <cryptomax@pm.me>
GitHub-Issue: https://github.com/joeycastillo/Sensor-Watch/issues/476
movement/watch_faces/clock/clock_face.c