mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 21:51:46 +00:00
Ensure LED is off when disabling heartbeat (#3772)
This commit is contained in:
parent
9501f3bda9
commit
5dfa4b837f
@ -693,6 +693,12 @@ void setup()
|
|||||||
// Now that the mesh service is created, create any modules
|
// Now that the mesh service is created, create any modules
|
||||||
setupModules();
|
setupModules();
|
||||||
|
|
||||||
|
#ifdef LED_PIN
|
||||||
|
// Turn LED off after boot, if heartbeat by config
|
||||||
|
if (config.device.led_heartbeat_disabled)
|
||||||
|
digitalWrite(LED_PIN, LOW ^ LED_INVERTED);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Do this after service.init (because that clears error_code)
|
// Do this after service.init (because that clears error_code)
|
||||||
#ifdef HAS_PMU
|
#ifdef HAS_PMU
|
||||||
if (!pmu_found)
|
if (!pmu_found)
|
||||||
|
Loading…
Reference in New Issue
Block a user