refactor: watch faces no longer need a pointer to settings!
This commit is contained in:
@@ -27,21 +27,18 @@
|
||||
#include "character_set_face.h"
|
||||
#include "watch.h"
|
||||
|
||||
void character_set_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
|
||||
(void) settings;
|
||||
void character_set_face_setup(uint8_t watch_face_index, void ** context_ptr) {
|
||||
(void) watch_face_index;
|
||||
if (*context_ptr == NULL) *context_ptr = malloc(sizeof(char));
|
||||
}
|
||||
|
||||
void character_set_face_activate(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
void character_set_face_activate(void *context) {
|
||||
char *c = (char *)context;
|
||||
*c = '@';
|
||||
movement_request_tick_frequency(0);
|
||||
}
|
||||
|
||||
bool character_set_face_loop(movement_event_t event, movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
bool character_set_face_loop(movement_event_t event, void *context) {
|
||||
char *c = (char *)context;
|
||||
char buf[11];
|
||||
switch (event.event_type) {
|
||||
@@ -57,14 +54,13 @@ bool character_set_face_loop(movement_event_t event, movement_settings_t *settin
|
||||
movement_move_to_face(0);
|
||||
break;
|
||||
default:
|
||||
movement_default_loop_handler(event, settings);
|
||||
movement_default_loop_handler(event);
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void character_set_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
void character_set_face_resign(void *context) {
|
||||
(void) context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user