From 2532b79aa8162a03a91737635165945039eca67c Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 3 Feb 2019 10:45:43 +0100 Subject: 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 --- Model01-Firmware.ino | 5 +++-- 1 file 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. -- cgit v1.2.3