summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2019-02-03 17:04:14 -0800
committerGitHub <noreply@github.com>2019-02-03 17:04:14 -0800
commitf2729e515c658330bf805e1b8b7b1ad9cedb1147 (patch)
treea97422d889dfa4cb2c82074f761c0b4dd3a02876
parentf3f687ed63e7110ef6c6ee2e8926a3020992cbf7 (diff)
parent2532b79aa8162a03a91737635165945039eca67c (diff)
downloadmodel01-firmware-f2729e515c658330bf805e1b8b7b1ad9cedb1147.tar.gz
model01-firmware-f2729e515c658330bf805e1b8b7b1ad9cedb1147.tar.bz2
model01-firmware-f2729e515c658330bf805e1b8b7b1ad9cedb1147.zip
Merge pull request #77 from keyboardio/eeprom-keymap-deprecation-fix
Update the EEPROMKeymap.setup() call to remove an obsolete argument
-rw-r--r--Model01-Firmware.ino5
1 files changed, 3 insertions, 2 deletions
diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino
index 0178726..7074861 100644
--- a/Model01-Firmware.ino
+++ b/Model01-Firmware.ino
@@ -525,8 +525,9 @@ void setup() {
// To make the keymap editable without flashing new firmware, we store
// additional layers in EEPROM. For now, we reserve space for five layers. If
// one wants to use these layers, just set the default layer to one in EEPROM,
- // by using the `settings.defaultLayer` Focus command.
- EEPROMKeymap.setup(5, EEPROMKeymap.Mode::EXTEND);
+ // by using the `settings.defaultLayer` Focus command, or by using the
+ // `keymap.onlyCustom` command to use EEPROM layers only.
+ EEPROMKeymap.setup(5);
}
/** loop is the second of the standard Arduino sketch functions.