mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-28 20:17:11 +01:00
Fix config default values on empty config file
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user