aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/sirius/unigo66/main.c
diff options
context:
space:
mode:
authorGravatar Daniel H Klein <danielklein@utexas.edu>2019-02-07 15:24:34 -0800
committerGravatar Drashna Jaelre <drashna@live.com>2019-02-07 15:24:34 -0800
commit76da6ec0618a95afe956ae43f47ef173774cf8ae (patch)
treeb07101331fdaa7e96b9ca8a90f8d8900984bb24a /keyboards/sirius/unigo66/main.c
parent6affec582b4816bf7f3b22bb3e3c7175d09e5c9e (diff)
downloadqmk_firmware-76da6ec0618a95afe956ae43f47ef173774cf8ae.tar.gz
[Keyboard] Unigo66 fixes and improvements (#5060)
* UniGo66 keyboard added * UniGo66 keyboard added * case correction of unigo66 files * create sirius folder * Update keyboards/sirius/unigo66/rules.mk Co-Authored-By: danielhklein <danielklein@utexas.edu> * Update keyboards/sirius/unigo66/keymaps/danielhklein/keymap.c Co-Authored-By: danielhklein <danielklein@utexas.edu> * Update keyboards/sirius/unigo66/keymaps/default/config.h Co-Authored-By: danielhklein <danielklein@utexas.edu> * Update keyboards/sirius/unigo66/keymaps/danielhklein/config.h Co-Authored-By: danielhklein <danielklein@utexas.edu> * debugging * correct keymap to layout * readme * remove common config * suggested changes to config.h * updates and fixes
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 76e88922c..4d167d9f7 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 (;;) {