Use kaleidoscope::hid instead of Keyboard directly

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/365/head
Gergely Nagy 7 years ago
parent a1c0fdfb42
commit 0943911786

@ -16,7 +16,7 @@ void NumLock_::loopHook(bool postClear) {
if (!postClear) if (!postClear)
return; return;
bool numState = !!(Keyboard.getLEDs() & LED_NUM_LOCK); bool numState = !!(kaleidoscope::hid::getKeyboardLEDs() & LED_NUM_LOCK);
if (numState != isOn) { if (numState != isOn) {
isOn = numState; isOn = numState;
if (isOn) { if (isOn) {

Loading…
Cancel
Save