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 cbae579
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cbae579

Please sign in to comment.