From 094d33094e4cf3f12afda8092a4d0f3f36275847 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Tue, 20 May 2025 22:35:16 -0400 Subject: [PATCH] clock face: move state typedef to header for consistency --- watch-faces/clock/clock_face.c | 10 ---------- watch-faces/clock/clock_face.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/watch-faces/clock/clock_face.c b/watch-faces/clock/clock_face.c index 53aad95f..78d9d700 100644 --- a/watch-faces/clock/clock_face.c +++ b/watch-faces/clock/clock_face.c @@ -42,16 +42,6 @@ #define CLOCK_FACE_LOW_BATTERY_VOLTAGE_THRESHOLD 2400 #endif -typedef struct { - struct { - watch_date_time_t previous; - } date_time; - uint8_t last_battery_check; - uint8_t watch_face_index; - bool time_signal_enabled; - bool battery_low; -} clock_state_t; - static void clock_indicate(watch_indicator_t indicator, bool on) { if (on) { watch_set_indicator(indicator); diff --git a/watch-faces/clock/clock_face.h b/watch-faces/clock/clock_face.h index 4ad33e15..bd0c384f 100644 --- a/watch-faces/clock/clock_face.h +++ b/watch-faces/clock/clock_face.h @@ -43,6 +43,16 @@ #include "movement.h" +typedef struct { + struct { + watch_date_time_t previous; + } date_time; + uint8_t last_battery_check; + uint8_t watch_face_index; + bool time_signal_enabled; + bool battery_low; +} clock_state_t; + void clock_face_setup(uint8_t watch_face_index, void ** context_ptr); void clock_face_activate(void *context); bool clock_face_loop(movement_event_t event, void *context);