Skip to content

Commit 2532b79

Browse files
committed
Update the EEPROMKeymap.setup() call to remove an obsolete argument
EEPROM-Keymap was recently changed to work differently, and thus the mode argument became obsolete. This removes it from the call, and updates the comment above it to match current reality. Signed-off-by: Gergely Nagy <algernon@keyboard.io>
1 parent f3f687e commit 2532b79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Model01-Firmware.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,9 @@ void setup() {
525525
// To make the keymap editable without flashing new firmware, we store
526526
// additional layers in EEPROM. For now, we reserve space for five layers. If
527527
// one wants to use these layers, just set the default layer to one in EEPROM,
528-
// by using the `settings.defaultLayer` Focus command.
529-
EEPROMKeymap.setup(5, EEPROMKeymap.Mode::EXTEND);
528+
// by using the `settings.defaultLayer` Focus command, or by using the
529+
// `keymap.onlyCustom` command to use EEPROM layers only.
530+
EEPROMKeymap.setup(5);
530531
}
531532

532533
/** loop is the second of the standard Arduino sketch functions.

0 commit comments

Comments
 (0)