diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 13:23:23 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-16 13:26:23 -0400 |
commit | d36331ce4e79d275e0ef09414a1a1a1a8949b0ea (patch) | |
tree | ed5f5fe596ca4b815fe2c58c00d5bf9ebb88c540 /movement/watch_faces/settings/set_time_face.c | |
parent | d5ac4cb71b4e328a27e26843cfdc6719b152ac7d (diff) | |
download | Sensor-Watch-d36331ce4e79d275e0ef09414a1a1a1a8949b0ea.tar.gz Sensor-Watch-d36331ce4e79d275e0ef09414a1a1a1a8949b0ea.tar.bz2 Sensor-Watch-d36331ce4e79d275e0ef09414a1a1a1a8949b0ea.zip |
rename types to be more c-like
Diffstat (limited to 'movement/watch_faces/settings/set_time_face.c')
-rw-r--r-- | movement/watch_faces/settings/set_time_face.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/movement/watch_faces/settings/set_time_face.c b/movement/watch_faces/settings/set_time_face.c index 36498611..7bb63d0b 100644 --- a/movement/watch_faces/settings/set_time_face.c +++ b/movement/watch_faces/settings/set_time_face.c @@ -5,18 +5,18 @@ #define SET_TIME_FACE_NUM_SETTINGS (6) const char set_time_face_titles[SET_TIME_FACE_NUM_SETTINGS][3] = {"HR", "MN", "SE", "YR", "MO", "DA"}; -void set_time_face_setup(LauncherSettings *settings, void ** context_ptr) { +void set_time_face_setup(movement_settings_t *settings, void ** context_ptr) { (void) settings; if (*context_ptr == NULL) *context_ptr = malloc(sizeof(uint8_t)); } -void set_time_face_activate(LauncherSettings *settings, void *context) { +void set_time_face_activate(movement_settings_t *settings, void *context) { (void) settings; *((uint8_t *)context) = 0; movement_request_tick_frequency(4); } -bool set_time_face_loop(LauncherEvent event, LauncherSettings *settings, void *context) { +bool set_time_face_loop(movement_event_t event, movement_settings_t *settings, void *context) { uint8_t current_page = *((uint8_t *)context); const uint8_t days_in_month[12] = {31, 28, 31, 30, 31, 30, 30, 31, 30, 31, 30, 31}; watch_date_time date_time = watch_rtc_get_date_time(); @@ -101,7 +101,7 @@ bool set_time_face_loop(LauncherEvent event, LauncherSettings *settings, void *c return true; } -void set_time_face_resign(LauncherSettings *settings, void *context) { +void set_time_face_resign(movement_settings_t *settings, void *context) { (void) settings; (void) context; watch_set_led_off(); |