sensor-watch/watch-library
Victor Graf 5b212a4423
Fix simulator and hardware divergence in callback handling (#252)
When using the simulator, I encountered cases where the light would become stuck on, and the watch
would be unresponsive. In particular, this would occur when pressing the light button on the
sunrise sunset watch face.

I appears that this is caused by a divergence in out the callback mask is interpreted by the
hardware interface, and in the simulator in the following function.

void watch_rtc_disable_matching_periodic_callbacks(uint8_t mask)

In particular, a mask of 0xFE is intended to disable all except the 128hz callback at index 0,
but instead disables all except the 1hz callback at index 7 in the simulator.
2023-11-18 23:10:45 -05:00
..
hardware default year to 2023 2023-08-27 17:53:02 -04:00
shared Turn on the funky segment of pos 0 for char '@' 2023-09-09 02:22:08 +02:00
simulator Fix simulator and hardware divergence in callback handling (#252) 2023-11-18 23:10:45 -05:00