Merge pull request #520 from keyboardio/EEPROMSettings/move-on-default

EEPROM-Settings: Setting a new default layer should move there too
pull/523/head
Jesse Vincent 6 years ago committed by GitHub
commit 048e9b227a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,6 +53,8 @@ uint8_t EEPROMSettings::default_layer(uint8_t layer) {
if (layer == 0xff) if (layer == 0xff)
return settings_.default_layer; return settings_.default_layer;
if (settings_.default_layer != layer)
Layer.move(layer);
settings_.default_layer = layer; settings_.default_layer = layer;
update(); update();
return settings_.default_layer; return settings_.default_layer;

Loading…
Cancel
Save