Never overwrite hardware config file (#122)

* Never overwrite hardware config file

* Remove unneeded assert
This commit is contained in:
Matt
2020-09-13 12:58:07 -07:00
committed by GitHub
parent 45686b7c9d
commit b73c698e4d
2 changed files with 0 additions and 8 deletions

View File

@@ -162,11 +162,6 @@ public class ConfigManager {
// Delete old configs
FileUtils.deleteDirectory(camerasFolder.toPath());
try {
JacksonUtils.serialize(hardwareConfigFile.toPath(), config.getHardwareConfig());
} catch (IOException e) {
logger.error("Could not save hardware config!", e);
}
try {
JacksonUtils.serialize(networkConfigFile.toPath(), config.getNetworkConfig());
} catch (IOException e) {