Off LED before powering off for repeaters

This commit is contained in:
Kevin Le committed 2026-09-19 11:38:37 +07:00
1 parent 26538e8a35
commit 166fd6a941
1 file changed
+5
+5
View File
@@ -151,6 +151,11 @@ void UITask::loop() {
}
if (_powering_off_at > 0) { // power off timer armed
#if defined(LED_PIN) && defined(LED_STATE_ON)
digitalWrite(LED_PIN, LED_STATE_ON); // switch on the led until poweroff
delay(1000);
digitalWrite(LED_PIN, !LED_STATE_ON); // off LED
#endif
if (millis() > _powering_off_at) {
_board->powerOff(); // should not return
}