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

fallback keymap #1304

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

fallback keymap #1304

wants to merge 3 commits into from

Commits on Oct 30, 2022

  1. fallback keymap

    Make `EEPROMSettings` fall back to a usable key map if it detects
    a possibly incompatible EEPROM layout. This forces
    `keymap.onlyCustom 0` and `settings.defaultLayer 0`, but does
    not write them to EEPROM.
    
    A new `settings.acceptInvalid` Focus command may be used to
    accept the current settings as valid, updating the checksum.
    
    Signed-off-by: Taylor Yu <[email protected]>
    tlyu committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    9430888 View commit details
    Browse the repository at this point in the history
  2. make fit on Atreus

    Adapt previous to fit on the Atreus example sketch. Notably, this
    makes `EEPROMKeymap::max_layers()` private so that it can be inlined.
    Therefore, sketches like the `EEPROM-Keymap-Programmer` example sketch
    that used that method needed to be adjusted. That method seemed obsolete
    anyway, because it doesn't do some error checking that
    `EEPROMKeymap::setup()` does.
    
    Also, it removes the `settings.acceptInvalid` command, replacing it
    with an optional argument to `settings.valid?`. Unfortunately, this
    means that Chrysalis has no direct way to detect the presence of this
    capability.
    
    Signed-off-by: Taylor Yu <[email protected]>
    tlyu committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    a72afa8 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. fix Model 100 keymap switch

    Signed-off-by: Taylor Yu <[email protected]>
    tlyu committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    8c7b7de View commit details
    Browse the repository at this point in the history