From 1020dd78981e0d4b4f20399aa5e76ea7d37beec6 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Wed, 20 Oct 2021 10:36:55 -0400 Subject: movement: fix preferences glitch, add some notes --- movement/movement.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'movement/movement.c') diff --git a/movement/movement.c b/movement/movement.c index a95501a4..df3cbf0b 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -209,7 +209,11 @@ void cb_tick() { event.event_type = EVENT_TICK; watch_date_time date_time = watch_rtc_get_date_time(); if (date_time.unit.second != movement_state.last_second) { + // TODO: since we time the LED with the 1 Hz tick, the actual time lit can vary depending on whether the + // user hit it just before or just after a tick. If we time this with the system tick we can do better. if (movement_state.light_ticks) movement_state.light_ticks--; + + // TODO: can we consolidate these two ticks? if (movement_state.settings.bit.le_interval && movement_state.le_mode_ticks > 0) movement_state.le_mode_ticks--; if (movement_state.timeout_ticks > 0) movement_state.timeout_ticks--; -- cgit v1.2.3