From: David Volovskiy Date: Tue, 3 Sep 2024 20:25:05 +0000 (-0400) Subject: got rid of hardcoding of half-second zero blink X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=2e46aa0e2c5c3e406e90890e5a581b0257303fa9;p=sensor-watch.git got rid of hardcoding of half-second zero blink --- diff --git a/movement/watch_faces/complication/endless_runner_face.c b/movement/watch_faces/complication/endless_runner_face.c index 54cf31e..3509fc2 100644 --- a/movement/watch_faces/complication/endless_runner_face.c +++ b/movement/watch_faces/complication/endless_runner_face.c @@ -233,7 +233,7 @@ static void add_to_score(endless_runner_state_t *state) { static void display_fuel(uint8_t subsecond, uint8_t difficulty) { char buf[4]; - if (difficulty == DIFF_FUEL_1 && game_state.fuel == 0 && subsecond % 4 == 0) { + if (difficulty == DIFF_FUEL_1 && game_state.fuel == 0 && subsecond % (FREQ/2) == 0) { watch_display_string(" ", 2); // Blink the 0 fuel to show it cannot be refilled. return; }