about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-12-17 11:40:34 -0500
committerZach DeCook <zachdecook@librem.one>2022-12-17 11:40:34 -0500
commit93db8d35a298a24d9fb853b539de73598e38ec65 (patch)
tree043919742a7ce280776a564e8596729ad3b6ce8a
parentce9bfb3e5d027252c5c0c37ec1c4645b98e393e1 (diff)
downloadHexBoard-93db8d35a298a24d9fb853b539de73598e38ec65.tar.gz
Allow boot up, mmhmm
-rw-r--r--HexBoard_V1.1.ino4
1 files 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();