Merge pull request #2 from keyboardio/f/dont-break-without-bootkeyboard

When compiled with a HID implementation without BootKeyboard enabled,
pull/365/head
Jesse Vincent 6 years ago committed by GitHub
commit 3c10c1c29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,6 +21,8 @@
namespace kaleidoscope {
void USBQuirks::toggleKeyboardProtocol() {
#if KALEIDOSCOPE_HIDADAPTOR_ENABLE_KEYBOARD_BOOT_PROTOCOL
uint8_t new_protocol = !BootKeyboard.getProtocol();
Kaleidoscope.detachFromHost();
@ -28,6 +30,8 @@ void USBQuirks::toggleKeyboardProtocol() {
BootKeyboard.setProtocol(new_protocol);
delay(1000);
Kaleidoscope.attachToHost();
#endif
}
}

Loading…
Cancel
Save