Fixed config migration issue from v2.1

This commit is contained in:
Gunnar Skjold
2023-02-01 18:46:22 +01:00
parent e70b872c98
commit 1719263de0

View File

@@ -122,6 +122,8 @@ DSMRParser *dsmrParser = NULL;
void setup() {
Serial.begin(115200);
config.hasConfig(); // Need to run this to make sure all configuration have been migrated before we load GPIO config
if(!config.getGpioConfig(gpioConfig)) {
config.clearGpio(gpioConfig);
}