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

config can be read additionally from Flash #8

Merged
merged 3 commits into from
Sep 4, 2024
Merged

Conversation

elral
Copy link
Collaborator

@elral elral commented May 22, 2024

Description of changes

These are the changes to read a configuration from Flash and/or EEPROM for a communit device.
The configuration saved in Flash must be in MFCustomDevicesConfig.h like:

const char CustomDeviceConfig[] PROGMEM =
    {
        "1.2.Button Flash:"
        "8.3.4.0.Encoder Flash:"
        "11.54.5.Analog Input Flash:"
        "12.7.6.5.1.InputShifter Flash:"
        "14.12.8.9.10.11.2.Multiplexer Flash:"};

If the compile flag -DHAS_CONFIG_IN_FLASH is set, this configuration gets read first, afterwards a configuration saved in the EEPROM gets read.
Precondition is that PR PR324 is merged. If not, the configuration will not be read from flash, only from EEPROM.

Fixes #7

Copy link

Community folder for this pull request:
Community.zip

@elral elral requested a review from DocMoebiuz as a code owner May 29, 2024 04:49
Copy link

Community folder for this pull request:
Community.zip

Copy link

github-actions bot commented Jul 4, 2024

Community folder for this pull request:
Community.zip

@elral elral mentioned this pull request Aug 29, 2024
@DocMoebiuz DocMoebiuz merged commit 2178d4f into main Sep 4, 2024
1 check passed
@elral elral deleted the config_from_flash branch September 5, 2024 08:32
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.

Load configuration from Flash
2 participants