use named constant for UTC zone
This commit is contained in:
parent
e6f8d39296
commit
4623bf002a
@ -525,7 +525,7 @@ void app_init(void) {
|
|||||||
memset(&movement_state, 0, sizeof(movement_state));
|
memset(&movement_state, 0, sizeof(movement_state));
|
||||||
|
|
||||||
movement_state.settings.bit.clock_mode_24h = MOVEMENT_DEFAULT_24H_MODE;
|
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_red_color = MOVEMENT_DEFAULT_RED_COLOR;
|
||||||
movement_state.settings.bit.led_green_color = MOVEMENT_DEFAULT_GREEN_COLOR;
|
movement_state.settings.bit.led_green_color = MOVEMENT_DEFAULT_GREEN_COLOR;
|
||||||
#if defined(WATCH_BLUE_TCC_CHANNEL) && !defined(WATCH_GREEN_TCC_CHANNEL)
|
#if defined(WATCH_BLUE_TCC_CHANNEL) && !defined(WATCH_GREEN_TCC_CHANNEL)
|
||||||
|
|||||||
@ -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));
|
*context_ptr = malloc(sizeof(world_clock_state_t));
|
||||||
memset(*context_ptr, 0, 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;
|
world_clock_state_t *state = (world_clock_state_t *)*context_ptr;
|
||||||
state->settings.bit.timezone_index = 15;
|
state->settings.bit.timezone_index = UTZ_UTC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user