Skip to content

Commit 22fba0c

Browse files
authored
feat(arduino): changing it to use time in ms
1 parent 756bde2 commit 22fba0c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

cores/esp32/Arduino.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,12 @@ bool shouldPrintChipDebugReport(void);
228228
return true; \
229229
}
230230

231-
uint64_t getArduinoSetupWaitTick(void);
232-
#define SET_SETUP_WAIT_TICK(tick) \
233-
uint64_t getArduinoSetupWaitTick() { \
234-
return tick; \
231+
// macro SET_TIME_BEFORE_STARTING_SKETCH_MS(time_ms) can set a time in milliseconds
232+
// before the sketch would start its execution. It gives the user time to open the Serial Monitor
233+
uint64_t getArduinoSetupWaitTime_ms(void);
234+
#define SET_TIME_BEFORE_STARTING_SKETCH_MS(time_ms) \
235+
uint64_t getArduinoSetupWaitTime_ms() { \
236+
return time_ms; \
235237
}
236238

237239
// allows user to bypass esp_spiram_test()

0 commit comments

Comments
 (0)