Added several DTU config settings

This commit is contained in:
Thomas Basler
2022-05-26 23:17:45 +02:00
parent 6943782726
commit e3ef1fa9a0
3 changed files with 16 additions and 2 deletions

View File

@@ -102,6 +102,12 @@ void ConfigurationClass::migrate()
}
}
if (config.Cfg_Version < 0x00010900) {
config.Dtu_Serial = DTU_SERIAL;
config.Dtu_PollInterval = DTU_POLL_INTERVAL;
config.Dtu_PaLevel = DTU_PA_LEVEL;
}
config.Cfg_Version = CONFIG_VERSION;
write();
}