mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-14 17:12:08 +00:00
Add ability to turn off heartbeat LED blinking (#3674)
* 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 <me@ndoo.sg> * led_heartbeat_disabled * trunk --------- Signed-off-by: Andrew Yong <me@ndoo.sg> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
parent
8b5fad21b0
commit
250cf16bf8
@ -179,6 +179,11 @@ const char *getDeviceName()
|
|||||||
|
|
||||||
static int32_t ledBlinker()
|
static int32_t ledBlinker()
|
||||||
{
|
{
|
||||||
|
// Still set up the blinking (heartbeat) interval but skip code path below, so LED will blink if
|
||||||
|
// config.device.led_heartbeat_disabled is changed
|
||||||
|
if (config.device.led_heartbeat_disabled)
|
||||||
|
return 1000;
|
||||||
|
|
||||||
static bool ledOn;
|
static bool ledOn;
|
||||||
ledOn ^= 1;
|
ledOn ^= 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user