]> git.earman.xyz Git - sensor-watch.git/commit
faces/simple_clock: clear segments if not in 024h
authorMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Mon, 16 Sep 2024 17:50:42 +0000 (14:50 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Mon, 16 Sep 2024 18:53:48 +0000 (15:53 -0300)
commitf2479bee4f0634fc7325f73858350b5f2778d1fe
tree313ff56ed9853df61b4a5c8983b06dd0404ae91a
parent831aadddeabfec167c2ebfdec07e25c08757f61f
faces/simple_clock: clear segments if not in 024h

There was an issue where the simple 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/simple_clock_face.c