clock face: move state typedef to header for consistency
This commit is contained in:
parent
44d14ba706
commit
094d33094e
@ -42,16 +42,6 @@
|
|||||||
#define CLOCK_FACE_LOW_BATTERY_VOLTAGE_THRESHOLD 2400
|
#define CLOCK_FACE_LOW_BATTERY_VOLTAGE_THRESHOLD 2400
|
||||||
#endif
|
#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) {
|
static void clock_indicate(watch_indicator_t indicator, bool on) {
|
||||||
if (on) {
|
if (on) {
|
||||||
watch_set_indicator(indicator);
|
watch_set_indicator(indicator);
|
||||||
|
|||||||
@ -43,6 +43,16 @@
|
|||||||
|
|
||||||
#include "movement.h"
|
#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_setup(uint8_t watch_face_index, void ** context_ptr);
|
||||||
void clock_face_activate(void *context);
|
void clock_face_activate(void *context);
|
||||||
bool clock_face_loop(movement_event_t event, void *context);
|
bool clock_face_loop(movement_event_t event, void *context);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user