From f74533f714d7908f5371c801c159481e9edd387a Mon Sep 17 00:00:00 2001 From: Andrew Yong Date: Sat, 20 Apr 2024 14:47:25 +0800 Subject: [PATCH] Add ability to turn off status LED blinking Fixes #3635 and depends on [protobufs PR #485](https://github.com/meshtastic/protobufs/pull/485) Signed-off-by: Andrew Yong --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b1a15634fc..f0b0a61293 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -179,6 +179,9 @@ const char *getDeviceName() static int32_t ledBlinker() { + // Still set up the blinker interval but skip code path below, so LED will blink if config.device.status_led_off is changed + if (config.device.status_led_off) return 1000; + LOG_DEBUG("BLINK"); static bool ledOn; ledOn ^= 1;