mirror of
https://github.com/joeycastillo/second-movement.git
synced 2026-02-04 15:05:31 +00:00
fix instant light not turning off after a long press
This commit is contained in:
@ -435,6 +435,7 @@ bool movement_default_loop_handler(movement_event_t event) {
|
||||
movement_illuminate_led();
|
||||
break;
|
||||
case EVENT_LIGHT_BUTTON_UP:
|
||||
case EVENT_LIGHT_LONG_UP:
|
||||
if (movement_state.settings.bit.led_duration == 0) {
|
||||
movement_force_led_off();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user