From c9e2eec2734db4baae4cdae3187de26bffe81ac4 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 16 Aug 2018 18:03:02 -0700 Subject: [PATCH] When compiled with a HID implementation without BootKeyboard enabled, this shouldn't break --- src/kaleidoscope/USB-Quirks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kaleidoscope/USB-Quirks.cpp b/src/kaleidoscope/USB-Quirks.cpp index 835429ae..aaec91a6 100644 --- a/src/kaleidoscope/USB-Quirks.cpp +++ b/src/kaleidoscope/USB-Quirks.cpp @@ -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 + } }