File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ __attribute__((weak)) void keyboard_pre_init_keymap(void) {}
5858void keyboard_pre_init_user (void ) {
5959 print_set_sendchar (drashna_sendchar );
6060 eeconfig_read_user_datablock (& userspace_config , 0 , EECONFIG_USER_DATA_SIZE );
61- if (!eeconfig_is_user_datablock_valid () || ! userspace_config .check ) {
61+ if (!eeconfig_is_user_datablock_valid () || userspace_config .sizeof_config != sizeof ( userspace_config_t ) ) {
6262 eeconfig_init_user ();
6363 }
6464
@@ -269,7 +269,7 @@ void led_set_user(uint8_t usb_led) {
269269__attribute__((weak )) void eeconfig_init_keymap (void ) {}
270270void eeconfig_init_user (void ) {
271271 memset (& userspace_config , 0 , sizeof (userspace_config_t ));
272- userspace_config .check = true ;
272+ userspace_config .sizeof_config = ( uint8_t ) sizeof ( userspace_config_t ) ;
273273 userspace_config .rgb .layer_change = true;
274274#if defined(OLED_ENABLE )
275275 userspace_config .display .oled .brightness = OLED_BRIGHTNESS ;
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ typedef union PACKED {
8888 bool is_dst : 1 ;
8989 int8_t timezone : 6 ;
9090 } rtc ;
91- bool nuke_switch : 1 ;
92- bool check : 1 ;
91+ bool nuke_switch : 1 ;
92+ uint8_t sizeof_config : 8 ;
9393 };
9494} userspace_config_t ;
9595
You can’t perform that action at this time.
0 commit comments