From c4fcb7fc215e9d66af099b4ef7eb9514bf6506da Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 21 Mar 2022 22:24:00 +0100 Subject: [PATCH] EEPROM-Settings: Do commit the storage after handling eeprom.contents (#1136) When handling the update variant of `eeprom.contents`, we need to commit the update storage, too. This does not affect AVR that doesn't need an explicit commit, but it does affect ARM, where `eeprom.contents` likely didn't work at all in update mode. Signed-off-by: Gergely Nagy --- .../src/kaleidoscope/plugin/EEPROM-Settings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.cpp b/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.cpp index 22eed6c4..f4b7b34f 100644 --- a/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.cpp +++ b/plugins/Kaleidoscope-EEPROM-Settings/src/kaleidoscope/plugin/EEPROM-Settings.cpp @@ -233,6 +233,7 @@ EventHandlerResult FocusEEPROMCommand::onFocusEvent(const char *command) { ::Focus.read(d); Runtime.storage().update(i, d); } + Runtime.storage().commit(); } break;