Skip to content

Commit 598c474

Browse files
drashnafauxpark
authored and
Lorenzo Castoldi
committed
[Bug] Fix default layer value in eeconfig_init (qmk#21909)
Co-authored-by: Ryan <[email protected]>
1 parent 1aeb1a3 commit 598c474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quantum/eeconfig.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void eeconfig_init_quantum(void) {
4949

5050
eeprom_update_word(EECONFIG_MAGIC, EECONFIG_MAGIC_NUMBER);
5151
eeprom_update_byte(EECONFIG_DEBUG, 0);
52-
eeprom_update_byte(EECONFIG_DEFAULT_LAYER, 0);
53-
default_layer_state = 0;
52+
default_layer_state = (layer_state_t)1 << 0;
53+
eeprom_update_byte(EECONFIG_DEFAULT_LAYER, default_layer_state);
5454
// Enable oneshot and autocorrect by default: 0b0001 0100 0000 0000
5555
eeprom_update_word(EECONFIG_KEYMAP, 0x1400);
5656
eeprom_update_byte(EECONFIG_BACKLIGHT, 0);

0 commit comments

Comments
 (0)