Fix config default values on empty config file
This commit is contained in:
parent
c9e603b2de
commit
226a57b328
@ -37,6 +37,10 @@ void ConfigurationClass::init()
|
||||
config.Inverter[i].Serial = 0;
|
||||
strlcpy(config.Inverter[i].Name, "", 0);
|
||||
}
|
||||
|
||||
config.Dtu_Serial = DTU_SERIAL;
|
||||
config.Dtu_PollInterval = DTU_POLL_INTERVAL;
|
||||
config.Dtu_PaLevel = DTU_PA_LEVEL;
|
||||
}
|
||||
|
||||
bool ConfigurationClass::write()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user