~ruther/qmk_firmware

9c2c96a20e503e18c0a775f3f5f0304899396537 — Drashna Jaelre 1 year, 8 months ago 99a225e
[Bug] Fix default layer value in eeconfig_init (#21909)

Co-authored-by: Ryan <fauxpark@gmail.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M quantum/eeconfig.c
M quantum/eeconfig.c => quantum/eeconfig.c +2 -2
@@ 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);

Do not follow this link