Off LED before powering off for repeater

This commit is contained in:
Kevin Le
2026-09-19 11:26:42 +07:00
parent 166f75c1b6
commit c425648bfc
+3 -1
View File
@@ -140,8 +140,10 @@ void UITask::loop() {
}
if (_powering_off_at > 0) { // power off timer armed
#ifdef LED_PIN
#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