Merge pull request #7 from jamesnvc/get-key-override-fix

If layer is greater than max_layer, always fall back to PROGMEM
pull/365/head
Gergely Nagy 7 years ago committed by GitHub
commit 64dff51199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ Key EEPROMKeymap::getKeyOverride(uint8_t layer, byte row, byte col) {
Key key;
key = getKey(layer, row, col);
if (key == Key_Transparent)
if (key == Key_Transparent || layer >= max_layers_)
key = Layer.getKeyFromPROGMEM(layer, row, col);
return key;
}

Loading…
Cancel
Save