fix instant light not turning off after a long press

This commit is contained in:
Alessandro Genova
2025-09-12 21:20:05 -04:00
parent 3ea2f9c58a
commit 961db3cc71

View File

@ -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();
}