When figuring out which keys to light up with LEDs: Switch to looking up the numpad keys based on the currently active layer

pull/365/head
Jesse Vincent 7 years ago
parent c575fd0d52
commit 6dc23db20b
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -21,7 +21,7 @@ void NumLock_::loopHook(bool postClear) {
for (uint8_t r = 0; r < ROWS; r++) {
for (uint8_t c = 0; c < COLS; c++) {
Key k = Layer.lookup(r, c);
Key k = Layer.lookupOnActiveLayer(r, c);
Key layer_key = Layer.getKey(numPadLayer, r, c);
if ((k != layer_key) || (k.flags != KEY_FLAGS)) {

Loading…
Cancel
Save