mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 10:46:33 +00:00
adding boot-up delay define
use -D WLED_BOOTUPDELAY=500 in platformio env definition to add 500ms of delay before hardware init.
This commit is contained in:
parent
ea608cecb0
commit
ac503ef72e
@ -343,6 +343,9 @@ void WLED::setup()
|
|||||||
#ifdef ARDUINO_ARCH_ESP32
|
#ifdef ARDUINO_ARCH_ESP32
|
||||||
pinMode(hardwareRX, INPUT_PULLDOWN); delay(1); // suppress noise in case RX pin is floating (at low noise energy) - see issue #3128
|
pinMode(hardwareRX, INPUT_PULLDOWN); delay(1); // suppress noise in case RX pin is floating (at low noise energy) - see issue #3128
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef WLED_BOOTUPDELAY
|
||||||
|
delay(WLED_BOOTUPDELAY); // delay to let voltage stabilize, helps with boot issues on some setups
|
||||||
|
#endif
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
#if !ARDUINO_USB_CDC_ON_BOOT
|
#if !ARDUINO_USB_CDC_ON_BOOT
|
||||||
Serial.setTimeout(50); // this causes troubles on new MCUs that have a "virtual" USB Serial (HWCDC)
|
Serial.setTimeout(50); // this causes troubles on new MCUs that have a "virtual" USB Serial (HWCDC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user