silence warnings

This commit is contained in:
joeycastillo
2023-07-29 07:03:49 -04:00
parent 6a69e0a691
commit 1377d36622
2 changed files with 5 additions and 4 deletions

View File

@@ -28,6 +28,7 @@
void flashlight_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr) {
(void) settings;
(void) watch_face_index;
if (*context_ptr == NULL) {
*context_ptr = malloc(sizeof(flashlight_state_t));
memset(*context_ptr, 0, sizeof(flashlight_state_t));
@@ -38,14 +39,14 @@ void flashlight_face_setup(movement_settings_t *settings, uint8_t watch_face_ind
void flashlight_face_activate(movement_settings_t *settings, void *context) {
(void) settings;
flashlight_state_t *state = (flashlight_state_t *)context;
(void) context;
watch_enable_digital_output(A2);
watch_set_pin_level(A2, false);
}
bool flashlight_face_loop(movement_event_t event, movement_settings_t *settings, void *context) {
flashlight_state_t *state = (flashlight_state_t *)context;
(void) context;
switch (event.event_type) {
case EVENT_ACTIVATE: