mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
clarify return value notes in template
This commit is contained in:
parent
3142fccea3
commit
45cd1dcac1
|
@ -81,8 +81,12 @@ bool <#watch_face_name#>_face_loop(movement_event_t event, movement_settings_t *
|
||||||
return movement_default_loop_handler(event, settings);
|
return movement_default_loop_handler(event, settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
// return true if the watch can enter standby mode. If you are PWM'ing an LED or buzzing the buzzer here,
|
// return true if the watch can enter standby mode. Generally speaking, you should always return true.
|
||||||
// you should return false since the PWM driver does not operate in standby mode.
|
// Exceptions:
|
||||||
|
// * If you are displaying a color using the low-level watch_set_led_color function, you should return false.
|
||||||
|
// * If you are sounding the buzzer using the low-level watch_set_buzzer_on function, you should return false.
|
||||||
|
// Note that if you are driving the LED or buzzer using Movement functions like movement_illuminate_led or
|
||||||
|
// movement_play_alarm, you can still return true. This guidance only applies to the low-level watch_ functions.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue