]> git.earman.xyz Git - sensor-watch.git/commitdiff
no need for this to be a function
authorjoeycastillo <joeycastillo@utexas.edu>
Mon, 23 Sep 2024 01:51:11 +0000 (21:51 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Mon, 23 Sep 2024 01:51:11 +0000 (21:51 -0400)
movement.c

index 17d368fec4bad44ce6e0e2ba1228e8d29780c478..deec7de99bbfa93c1fff1c740af88f74005c899b 100644 (file)
@@ -303,14 +303,6 @@ static void end_buzzing_and_disable_buzzer(void) {
     watch_disable_buzzer();
 }
 
-static void set_initial_clock_mode(void) {
-#ifdef CLOCK_FACE_24H_ONLY
-    movement_state.settings.bit.clock_mode_24h = true;
-#else
-    movement_state.settings.bit.clock_mode_24h = MOVEMENT_DEFAULT_24H_MODE;
-#endif
-}
-
 void movement_play_signal(void) {
     void *maybe_disable_buzzer = end_buzzing_and_disable_buzzer;
     if (watch_is_buzzer_or_led_enabled()) {
@@ -377,7 +369,12 @@ void app_init(void) {
 #endif
 
     memset(&movement_state, 0, sizeof(movement_state));
-    set_initial_clock_mode();
+
+#ifdef CLOCK_FACE_24H_ONLY
+    movement_state.settings.bit.clock_mode_24h = true;
+#else
+    movement_state.settings.bit.clock_mode_24h = MOVEMENT_DEFAULT_24H_MODE;
+#endif
     movement_state.settings.bit.led_red_color = MOVEMENT_DEFAULT_RED_COLOR;
     movement_state.settings.bit.led_green_color = MOVEMENT_DEFAULT_GREEN_COLOR;
     movement_state.settings.bit.button_should_sound = MOVEMENT_DEFAULT_BUTTON_SOUND;