When compiled with a HID implementation without BootKeyboard enabled,

this shouldn't break
pull/365/head
Jesse Vincent 6 years ago
parent 28b4e1bb0a
commit c9e2eec273

@ -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