]> git.earman.xyz Git - sensor-watch.git/commitdiff
got rid of hardcoding of half-second zero blink
authorDavid Volovskiy <devolov@gmail.com>
Tue, 3 Sep 2024 20:25:05 +0000 (16:25 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Tue, 3 Sep 2024 20:25:05 +0000 (16:25 -0400)
movement/watch_faces/complication/endless_runner_face.c

index 54cf31ee4aa6ea53a3feccc7e109e1e386252570..3509fc229443f68565a267b9cc33cfd8b0a3677b 100644 (file)
@@ -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;
     }