*/
sei();
-/* Some keyboards bootup quickly and cannot be initialized with this startup wait.
+/* Some keyboards bootup quickly and cannot be initialized with this startup wait.*/
// wait for startup of sendchar routine
while (USB_DeviceState != DEVICE_STATE_Configured) ;
if (debug_enable) {
_delay_ms(1000);
}
-*/
-
- /* 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");