From cbae57961fe42c69694ab4ff0764c3e769d49ef2 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b1a15634fc..3564949c53 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -179,6 +179,10 @@ 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; + static bool ledOn; ledOn ^= 1;