Skip to content

Commit 12d7cde

Browse files
authored
feat(arduino): changing it to use time in ms
1 parent a258a1e commit 12d7cde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cores/esp32/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ void loopTask(void *pvParameters) {
5353
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
5454
// sets UART0 (default console) RX/TX pins as already configured in boot or as defined in variants/pins_arduino.h
5555
Serial0.setPins(gpioNumberToDigitalPin(SOC_RX0), gpioNumberToDigitalPin(SOC_TX0));
56-
vTaskDelay(getArduinoSetupWaitTick());
56+
// time in ms that the sketch may wait before starting its execution - default is zero
57+
// usually done for opening the Serial Monitor and seeing all debug messages
58+
delay(getArduinoSetupWaitTime_ms());
5759
#endif
5860
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
5961
printBeforeSetupInfo();

0 commit comments

Comments
 (0)