Skip to content

Commit

Permalink
use named constant for UTC zone
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Oct 5, 2024
1 parent e6f8d39 commit 4623bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion movement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion watch-faces/clock/world_clock_face.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 4623bf0

Please sign in to comment.