diff options
author | Alexsander Akers <me@a2.io> | 2022-01-27 11:23:27 -0500 |
---|---|---|
committer | Alexsander Akers <me@a2.io> | 2022-01-27 12:06:06 -0500 |
commit | a4cb3c8594729224003e32fb1ea11307caa832d2 (patch) | |
tree | 91f558838b91e52d53c90080080377c48c7d7d30 /watch-library/simulator/watch | |
parent | a559d089f1845fb23434739f66b7bb5288191139 (diff) | |
download | Sensor-Watch-a4cb3c8594729224003e32fb1ea11307caa832d2.tar.gz Sensor-Watch-a4cb3c8594729224003e32fb1ea11307caa832d2.tar.bz2 Sensor-Watch-a4cb3c8594729224003e32fb1ea11307caa832d2.zip |
Adjust function semantics by "flipping" bit order
Diffstat (limited to 'watch-library/simulator/watch')
-rw-r--r-- | watch-library/simulator/watch/watch_rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/watch-library/simulator/watch/watch_rtc.c b/watch-library/simulator/watch/watch_rtc.c index 2cae701d..ea8659dc 100644 --- a/watch-library/simulator/watch/watch_rtc.c +++ b/watch-library/simulator/watch/watch_rtc.c @@ -115,7 +115,7 @@ void watch_rtc_disable_periodic_callback(uint8_t frequency) { void watch_rtc_disable_matching_periodic_callbacks(uint8_t mask) { for (int i = 0; i < 8; i++) { - if (tick_callbacks[i] != -1 && (mask & (1 << i)) != 0) { + if (tick_callbacks[i] != -1 && (mask & (1 << (7 - i))) != 0) { emscripten_clear_interval(tick_callbacks[i]); tick_callbacks[i] = -1; } |