Skip to content

Commit

Permalink
Delay if ARDUINO_USB_CDC_ON_BOOT
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Feb 11, 2024
1 parent 9d8b841 commit 7b8d9dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ void OnButtonClicked(lv_event_t *e)

void setup()
{
delay(250);
#ifdef ARDUINO_USB_CDC_ON_BOOT
delay(5000);
#endif
Serial.begin(115200);
Serial.setDebugOutput(true);
log_i("Board: %s", BOARD_NAME);
Expand Down

0 comments on commit 7b8d9dc

Please sign in to comment.