diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-03 11:30:36 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-03 11:30:36 -0500 |
commit | 8e2bf8591a70742addfd169832f03aa76210961c (patch) | |
tree | 64ab430603bc89a3c2b59d0c94431f2d7045db77 /movement/movement.c | |
parent | b8c824419fc565fa08fad1cf6ad7cc9f5c395599 (diff) | |
download | Sensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.tar.gz Sensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.tar.bz2 Sensor-Watch-8e2bf8591a70742addfd169832f03aa76210961c.zip |
movement: allow watch faces to request zero ticks
Diffstat (limited to 'movement/movement.c')
-rw-r--r-- | movement/movement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/movement.c b/movement/movement.c index b41700b0..f627dbf5 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -104,7 +104,7 @@ void movement_request_tick_frequency(uint8_t freq) { RTC->MODE2.INTENCLR.reg = 0xFE; // disable all callbacks except the 128 Hz one movement_state.subsecond = 0; movement_state.tick_frequency = freq; - watch_rtc_register_periodic_callback(cb_tick, freq); + if (freq) watch_rtc_register_periodic_callback(cb_tick, freq); } void movement_illuminate_led() { |