diff options
author | Drashna Jaelre <drashna@live.com> | 2023-09-14 10:17:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 10:17:15 -0700 |
commit | 9c2c96a20e503e18c0a775f3f5f0304899396537 (patch) | |
tree | bfb4e05c8bb9b60fe6ac31553e49619977107b77 | |
parent | 99a225e1a2217cd5c1bdb55a9c1be5a88903e7a3 (diff) |
[Bug] Fix default layer value in eeconfig_init (#21909)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | quantum/eeconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/eeconfig.c b/quantum/eeconfig.c index 84de025f0e..4579d67c28 100644 --- a/quantum/eeconfig.c +++ b/quantum/eeconfig.c @@ -49,8 +49,8 @@ void eeconfig_init_quantum(void) { eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER); eeprom_update_byte(EECONFIG_DEBUG, 0); - eeprom_update_byte(EECONFIG_DEFAULT_LAYER, 0); - default_layer_state = 0; + default_layer_state = (layer_state_t)1 << 0; + eeprom_update_byte(EECONFIG_DEFAULT_LAYER, default_layer_state); // Enable oneshot and autocorrect by default: 0b0001 0100 0000 0000 eeprom_update_word(EECONFIG_KEYMAP, 0x1400); eeprom_update_byte(EECONFIG_BACKLIGHT, 0); |