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 intepretted by the
hardware interface, and in the simulator in the following function.
In particular, a mask of 0xFE is intended to disable all except the 128hz cvallback at index 0,
but instead disables all except the 1hz callback at index 7 in the simulator.
Based on by reading through and debugging the code in the simulator, this should fix a divergence
between then hardware and simulator, but I am not 100% I am correct here. I see that @a2 originally
included this code in https://github.com/joeycastillo/Sensor-Watch/pull/43, so I'd love your eyes
here.
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 intepretted by the hardware interface, and in the simulator in the following function.
In particular, a mask of
0xFE
is intended to disable all except the 128hz cvallback at index 0, but instead disables all except the 1hz callback at index 7 in the simulator.Based on by reading through and debugging the code in the simulator, this should fix a divergence between then hardware and simulator, but I am not 100% I am correct here. I see that @a2 originally included this code in https://github.com/joeycastillo/Sensor-Watch/pull/43, so I'd love your eyes here.