mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#388 fixed peripherals list not updating on add/delete of config entry
This commit is contained in:
parent
f23b7e2c2f
commit
37659d687e
@ -928,6 +928,7 @@ local function config_view(display)
|
|||||||
|
|
||||||
peri_pane.set_value(1)
|
peri_pane.set_value(1)
|
||||||
tool_ctl.gen_peri_summary(tmp_cfg)
|
tool_ctl.gen_peri_summary(tmp_cfg)
|
||||||
|
tool_ctl.update_peri_list()
|
||||||
|
|
||||||
tool_ctl.p_idx.set_value(1)
|
tool_ctl.p_idx.set_value(1)
|
||||||
end
|
end
|
||||||
@ -1345,6 +1346,7 @@ local function config_view(display)
|
|||||||
local function delete_peri_entry(idx)
|
local function delete_peri_entry(idx)
|
||||||
table.remove(tmp_cfg.Peripherals, idx)
|
table.remove(tmp_cfg.Peripherals, idx)
|
||||||
tool_ctl.gen_peri_summary(tmp_cfg)
|
tool_ctl.gen_peri_summary(tmp_cfg)
|
||||||
|
tool_ctl.update_peri_list()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- generate the peripherals summary list
|
-- generate the peripherals summary list
|
||||||
|
@ -31,7 +31,7 @@ local sna_rtu = require("rtu.dev.sna_rtu")
|
|||||||
local sps_rtu = require("rtu.dev.sps_rtu")
|
local sps_rtu = require("rtu.dev.sps_rtu")
|
||||||
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
||||||
|
|
||||||
local RTU_VERSION = "v1.7.6"
|
local RTU_VERSION = "v1.7.7"
|
||||||
|
|
||||||
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
|
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
|
||||||
local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE
|
local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE
|
||||||
|
Loading…
Reference in New Issue
Block a user