diff options
author | Gergely Nagy <algernon@madhouse-project.org> | 2017-07-02 22:47:11 +0200 |
---|---|---|
committer | Gergely Nagy <algernon@madhouse-project.org> | 2017-07-02 22:47:11 +0200 |
commit | 90a4a061260e7553bebbe5e36ac132bf4d5aba81 (patch) | |
tree | 8431cd637b14a1318a27c9eb7547804a298d3c46 | |
parent | 119423cbbdb436dc1d1b9e2fbe6c056f3ff8b469 (diff) | |
download | Model01-Firmware-90a4a061260e7553bebbe5e36ac132bf4d5aba81.tar.gz Model01-Firmware-90a4a061260e7553bebbe5e36ac132bf4d5aba81.zip |
Update to work with an argument-less NumLock.toggle()
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
-rw-r--r-- | Model01-Firmware.ino | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index 0375788..cc4e2b6 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); |