Skip to content

config can be read additionally from Flash#8

Merged
DocMoebiuz merged 3 commits intomainfrom
config_from_flash
Sep 4, 2024
Merged

config can be read additionally from Flash#8
DocMoebiuz merged 3 commits intomainfrom
config_from_flash

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

@github-actions
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
@github-actions
Copy link

Community folder for this pull request:
Community.zip

@github-actions
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
@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