diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-10 12:17:47 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-12-10 12:17:47 -0500 |
commit | 1ea5581e55cc7bfd90a02a55146fca942ccfb2fc (patch) | |
tree | cb286e2e8a1e83f95d8ea392ffb8da35bafe7bed /movement/movement.c | |
parent | e202c48b0a1a9838e91d020ca2b71214119b3c3d (diff) | |
parent | 762af872d2f2c977e51d6e51b8c3ad622485cc05 (diff) | |
download | Sensor-Watch-1ea5581e55cc7bfd90a02a55146fca942ccfb2fc.tar.gz Sensor-Watch-1ea5581e55cc7bfd90a02a55146fca942ccfb2fc.tar.bz2 Sensor-Watch-1ea5581e55cc7bfd90a02a55146fca942ccfb2fc.zip |
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into pr/24
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 9f98fe4d..cdd4ff06 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(void) { |