summaryrefslogtreecommitdiffstats
path: root/keyboards/sirius/unigo66/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sirius/unigo66/main.c')
-rw-r--r--keyboards/sirius/unigo66/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboards/sirius/unigo66/main.c b/keyboards/sirius/unigo66/main.c
index 76e88922cb..4d167d9f7e 100644
--- a/keyboards/sirius/unigo66/main.c
+++ b/keyboards/sirius/unigo66/main.c
@@ -11,7 +11,6 @@
#include "keyboard.h"
#include "led.h"
-
/* LED ping configuration */
#define TMK_LED
//#define LEONARDO_LED
@@ -87,6 +86,12 @@ int main(void)
}
*/
+ /* wait for USB startup to get ready for debug output */
+ uint8_t timeout = 255; // timeout when USB is not available(Bluetooth)
+ while (timeout-- && USB_DeviceState != DEVICE_STATE_Configured) {
+ _delay_ms(4);
+ }
+
debug("init: done\n");
for (;;) {