diff --git a/src/Kaleidoscope/Cycle.cpp b/src/Kaleidoscope/Cycle.cpp index 2f2c53c3..38eb6fab 100644 --- a/src/Kaleidoscope/Cycle.cpp +++ b/src/Kaleidoscope/Cycle.cpp @@ -18,6 +18,7 @@ #include #include +#include "kaleidoscope/hid.h" namespace kaleidoscope { // --- state --- @@ -39,14 +40,14 @@ void Cycle::begin(void) { void Cycle::replace(Key key) { handleKeyswitchEvent(Key_Backspace, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED); - Keyboard.sendReport(); + hid::sendKeyboardReport(); handleKeyswitchEvent(Key_Backspace, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED); - Keyboard.sendReport(); + hid::sendKeyboardReport(); handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, IS_PRESSED | INJECTED); - Keyboard.sendReport(); + hid::sendKeyboardReport(); handleKeyswitchEvent(key, UNKNOWN_KEYSWITCH_LOCATION, WAS_PRESSED | INJECTED); - Keyboard.sendReport(); + hid::sendKeyboardReport(); } void Cycle::replace(uint8_t cycle_size, const Key cycle_steps[]) {