From 93db8d35a298a24d9fb853b539de73598e38ec65 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 17 Dec 2022 11:40:34 -0500 Subject: Allow boot up, mmhmm --- HexBoard_V1.1.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HexBoard_V1.1.ino b/HexBoard_V1.1.ino index 7741d76..82669a2 100644 --- a/HexBoard_V1.1.ino +++ b/HexBoard_V1.1.ino @@ -283,8 +283,8 @@ void setup() { setupMenu(); menu.drawMenu(); - // wait until device mounted - while (!TinyUSBDevice.mounted()) delay(1); + // wait until device mounted, maybe + for (int i=0; i<5 && !TinyUSBDevice.mounted();i++) delay(1); // Print diagnostic troubleshooting information to serial monitor diagnosticTest(); -- cgit 1.4.1