From 90a4a061260e7553bebbe5e36ac132bf4d5aba81 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 2 Jul 2017 22:47:11 +0200 Subject: [PATCH] Update to work with an argument-less NumLock.toggle() Signed-off-by: Gergely Nagy --- Model01-Firmware.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 03757885..cc4e2b63 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -97,7 +97,7 @@ static LEDSolidColor solidViolet(130, 0, 120); const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) { if (macroIndex == TOGGLENUMLOCK && key_toggled_on(keyState)) { - return NumLock.toggle(Macros.row, Macros.col, NUMPAD_KEYMAP); + return NumLock.toggle(); } else if (macroIndex == 1 && key_toggled_on(keyState)) { Macros.type(PSTR("Keyboardio Model 01 - Kaleidoscope ")); Macros.type(PSTR(BUILD_INFORMATION)); @@ -124,6 +124,7 @@ void setup() { &MouseKeys, NULL); + NumLock.numPadLayer = NUMPAD_KEYMAP; AlphaSquare.color = { 255, 0, 0 }; LEDRainbowEffect.brightness(150); LEDRainbowWaveEffect.brightness(150);