]> git.earman.xyz Git - sensor-watch.git/commitdiff
use named constant for UTC zone
authorjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 13:55:26 +0000 (09:55 -0400)
committerjoeycastillo <joeycastillo@utexas.edu>
Sat, 5 Oct 2024 14:36:58 +0000 (10:36 -0400)
movement.c
watch-faces/clock/world_clock_face.c

index b139b021eaae24ef9c23ae58f5397037e4bc4d97..0ee7e00a7ab6014f6cb4ba195571f36382751633 100644 (file)
@@ -525,7 +525,7 @@ void app_init(void) {
     memset(&movement_state, 0, sizeof(movement_state));
 
     movement_state.settings.bit.clock_mode_24h = MOVEMENT_DEFAULT_24H_MODE;
-    movement_state.settings.bit.time_zone = 15;
+    movement_state.settings.bit.time_zone = UTZ_UTC;
     movement_state.settings.bit.led_red_color = MOVEMENT_DEFAULT_RED_COLOR;
     movement_state.settings.bit.led_green_color = MOVEMENT_DEFAULT_GREEN_COLOR;
 #if defined(WATCH_BLUE_TCC_CHANNEL) && !defined(WATCH_GREEN_TCC_CHANNEL)
index 4e7cb7b9790d3a5f627b8985ca1850b6506c9bb2..e67dbb216aa55f37b284d23f578c9876e3b81321 100644 (file)
@@ -41,7 +41,7 @@ void world_clock_face_setup(uint8_t watch_face_index, void ** context_ptr) {
         *context_ptr = malloc(sizeof(world_clock_state_t));
         memset(*context_ptr, 0, sizeof(world_clock_state_t));
         world_clock_state_t *state = (world_clock_state_t *)*context_ptr;
-        state->settings.bit.timezone_index = 15;
+        state->settings.bit.timezone_index = UTZ_UTC;
     }
 }