mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-23 03:30:30 +08:00
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:
commit
9e41ac8e49
|
@ -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