1
0

Merge pull request #77 from keyboardio/eeprom-keymap-deprecation-fix

Update the EEPROMKeymap.setup() call to remove an obsolete argument
This commit is contained in:
Jesse Vincent 2019-02-03 17:04:14 -08:00 committed by GitHub
commit f2729e515c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.