]> git.earman.xyz Git - sensor-watch.git/commitdiff
template: fix compiler warning on watch_face_index as mentioned in PR 269
authorCarpeNoctem <cryptomax@pm.me>
Wed, 17 Jan 2024 12:08:54 +0000 (23:08 +1100)
committerCarpeNoctem <cryptomax@pm.me>
Wed, 17 Jan 2024 12:08:54 +0000 (23:08 +1100)
movement/template/template.c

index e03db561f6628541271371c0628f040d05517bf8..fe2723b8a5ed99b8b60b9ba06b675ccc8e81f766 100644 (file)
@@ -28,6 +28,7 @@
 
 void <#watch_face_name#>_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(<#watch_face_name#>_state_t));
         memset(*context_ptr, 0, sizeof(<#watch_face_name#>_state_t));