If we're looking up a key from `PROGMEM`, only do that if the layer in question is smaller than `layer_count`. Doing otherwise would read garbage from `PROGMEM` in case we try to read from a layer higher than what we have in there. This can happen if we have more layers in `EEPROM` than in `PROGMEM`. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/365/head
parent
1a626ee1e8
commit
f3eb6a7200
Loading…
Reference in new issue