Ensure LED is off when disabling heartbeat (#3772)

pull/3773/head
todd-herbert 2024-05-03 12:11:13 +12:00 zatwierdzone przez GitHub
rodzic 9501f3bda9
commit 5dfa4b837f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -693,6 +693,12 @@ void setup()
// Now that the mesh service is created, create any modules
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)
#ifdef HAS_PMU
if (!pmu_found)