mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixes/cleanups for pull request
This commit is contained in:
parent
dcef5a96f0
commit
7d65bba589
@ -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
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user