Fix a compile error

`max_layers` is a method, so comparing to that would be integer<->pointer
comparison. We want to compare to `max_layers_`.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/365/head
Gergely Nagy 6 years ago
parent 1ca7c5f5e2
commit 906f567698

@ -60,7 +60,7 @@ Key EEPROMKeymap::getKeyOverride(uint8_t layer, byte row, byte col) {
* the layer count in PROGMEM (layer_count). If we are, read from PROGMEM, * the layer count in PROGMEM (layer_count). If we are, read from PROGMEM,
* otherwise leave the key as-is (either transparent or NoKey). * otherwise leave the key as-is (either transparent or NoKey).
*/ */
if ((key == Key_Transparent || layer >= max_layers) && if ((key == Key_Transparent || layer >= max_layers_) &&
(layer < layer_count)) (layer < layer_count))
key = Layer.getKeyFromPROGMEM(layer, row, col); key = Layer.getKeyFromPROGMEM(layer, row, col);

Loading…
Cancel
Save