mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 03:01:51 +08:00
template: fix compiler warning on watch_face_index as mentioned in PR 269
This commit is contained in:
parent
07e45acba7
commit
6985ca54f3
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue