From e5f9929ed0fff0d478e0246ed64ff2fe74ea8615 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 25 Jul 2017 13:28:06 -0700 Subject: [PATCH] Port to new kaleidoscope::hid facade --- src/Kaleidoscope/Cycle.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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[]) {