Skip to content

Commit

Permalink
Add ability to turn off status LED blinking
Browse files Browse the repository at this point in the history
Fixes meshtastic#3635 and depends on [protobufs PR meshtastic#485](meshtastic/protobufs#485)

Signed-off-by: Andrew Yong <me@ndoo.sg>
  • Loading branch information
ndoo committed Apr 20, 2024
1 parent 44aa248 commit 3f762fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

static bool ledOn;
ledOn ^= 1;

Expand Down

0 comments on commit 3f762fb

Please sign in to comment.