fixes/cleanups for pull request

This commit is contained in:
Mikayla Fischler 2023-07-08 17:11:51 -04:00
parent dcef5a96f0
commit 7d65bba589
3 changed files with 4 additions and 3 deletions

View File

@ -215,7 +215,7 @@ end
local function _write_auto_config() local function _write_auto_config()
-- attempt to load settings -- attempt to load settings
if not settings.load("/coord.settings") then if not settings.load("/coord.settings") then
log.warning("process._write_config(): failed to load coordinator settings file") log.warning("process._write_auto_config(): failed to load coordinator settings file")
end end
-- save config -- save config
@ -223,7 +223,7 @@ local function _write_auto_config()
local saved = settings.save("/coord.settings") local saved = settings.save("/coord.settings")
if not saved then if not saved then
log.warning("process._write_config(): failed to save coordinator settings file") log.warning("process._write_auto_config(): failed to save coordinator settings file")
end end
return not not saved return not not saved

File diff suppressed because one or more lines are too long

View File

@ -485,6 +485,7 @@ function unit.new(reactor_id, num_boilers, num_turbines)
_unlink_disconnected_units(self.redstone) _unlink_disconnected_units(self.redstone)
_unlink_disconnected_units(self.boilers) _unlink_disconnected_units(self.boilers)
_unlink_disconnected_units(self.turbines) _unlink_disconnected_units(self.turbines)
_unlink_disconnected_units(self.sna)
_unlink_disconnected_units(self.envd) _unlink_disconnected_units(self.envd)
-- update degraded state for auto control -- update degraded state for auto control