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 <algernon@keyboard.io>
pull/1094/merge
Gergely Nagy 3 years ago committed by GitHub
parent d33a93026a
commit c4fcb7fc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -233,6 +233,7 @@ EventHandlerResult FocusEEPROMCommand::onFocusEvent(const char *command) {
::Focus.read(d);
Runtime.storage().update(i, d);
}
Runtime.storage().commit();
}
break;

Loading…
Cancel
Save