diff --git a/rtu/config/system.lua b/rtu/config/system.lua index b121db9..c44e0ba 100644 --- a/rtu/config/system.lua +++ b/rtu/config/system.lua @@ -732,11 +732,8 @@ function system.create(tool_ctl, main_pane, cfg_sys, divs, ext, style) local missing = { tmp = true, ini = true } for iface, _ in pairs(modems) do - if ini_cfg.WiredModem == iface then - missing.ini = false - elseif tmp_cfg.WiredModem == iface then - missing.tmp = false - end + if ini_cfg.WiredModem == iface then missing.ini = false end + if tmp_cfg.WiredModem == iface then missing.tmp = false end end if missing.tmp and tmp_cfg.WiredModem then diff --git a/rtu/configure.lua b/rtu/configure.lua index 48d2c99..029d91a 100644 --- a/rtu/configure.lua +++ b/rtu/configure.lua @@ -324,9 +324,9 @@ function configurator.configure(ask_config) tool_ctl.has_config = load_settings(ini_cfg) -- set tmp_cfg so interface lists are correct + tmp_cfg.WiredModem = ini_cfg.WiredModem tmp_cfg.Peripherals = tool_ctl.deep_copy_peri(ini_cfg.Peripherals) tmp_cfg.Redstone = tool_ctl.deep_copy_rs(ini_cfg.Redstone) - tmp_cfg.WiredModem = ini_cfg.WiredModem reset_term() diff --git a/supervisor/config/system.lua b/supervisor/config/system.lua index b453832..9b140b6 100644 --- a/supervisor/config/system.lua +++ b/supervisor/config/system.lua @@ -886,11 +886,8 @@ function system.create(tool_ctl, main_pane, cfg_sys, divs, fac_pane, style, exit local missing = { tmp = true, ini = true } for iface, _ in pairs(modems) do - if ini_cfg.WiredModem == iface then - missing.ini = false - elseif tmp_cfg.WiredModem == iface then - missing.tmp = false - end + if ini_cfg.WiredModem == iface then missing.ini = false end + if tmp_cfg.WiredModem == iface then missing.tmp = false end end if missing.tmp and tmp_cfg.WiredModem then