diff --git a/examples/simple_repeater/UITask.cpp b/examples/simple_repeater/UITask.cpp index 32db67518..f79330c82 100644 --- a/examples/simple_repeater/UITask.cpp +++ b/examples/simple_repeater/UITask.cpp @@ -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 }