Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EEPROM issues for Keymap Config #2

Merged
merged 1 commit into from
Jul 28, 2019

Conversation

drashna
Copy link

@drashna drashna commented Jul 27, 2019

I found that the Crtl-Gui configuration wasn't actually being retained in EEPROM, when resetting or power cycling the board.

Doing some digging .... the keymap_config_t structure uses a WORD (16 bit value), but the EECONFIG is only allocating a byte (8 bits).

This was fun, up until now, since it was only using 8 bits. However, adding Ctrl-GUI swapping exceeded the EEPROM allocation, and was getting truncated.

This adds another range for the EECONFIG storage, and fixes the functions to properly read from and write to EEPROM.

Fix names for Keymap config EEPROM
@drashna drashna force-pushed the magic_swap_ctrl_gui2 branch from 9a14241 to 4bd2292 Compare July 27, 2019 09:11
@1hella 1hella merged commit 58e6da1 into 1hella:magic_swap_ctrl_gui Jul 28, 2019
@drashna drashna deleted the magic_swap_ctrl_gui2 branch July 28, 2019 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants