Merge pull request #360 from CarpeNoctem/compiler_warning_watch_face_index

template: fix compiler warning on watch_face_index as mentioned in PR269
This commit is contained in:
Wesley Aptekar-Cassels
2024-01-21 01:21:32 -05:00
committed by GitHub

View 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));