mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#96 RTU starts unlinked now on main thread start
This commit is contained in:
parent
6686d8ea62
commit
3267e7ff13
@ -15,12 +15,12 @@ config.LOG_MODE = 0
|
||||
-- RTU peripheral devices (named: side/network device name)
|
||||
config.RTU_DEVICES = {
|
||||
{
|
||||
name = "boiler_1",
|
||||
name = "boilerValve_0",
|
||||
index = 1,
|
||||
for_reactor = 1
|
||||
},
|
||||
{
|
||||
name = "turbine_1",
|
||||
name = "turbineValve_0",
|
||||
index = 1,
|
||||
for_reactor = 1
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ local imatrix_rtu = require("rtu.dev.imatrix_rtu")
|
||||
local turbine_rtu = require("rtu.dev.turbine_rtu")
|
||||
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
||||
|
||||
local RTU_VERSION = "beta-v0.7.10"
|
||||
local RTU_VERSION = "beta-v0.7.11"
|
||||
|
||||
local rtu_t = types.rtu_t
|
||||
|
||||
|
@ -44,6 +44,9 @@ function threads.thread__main(smem)
|
||||
local conn_watchdog = smem.rtu_sys.conn_watchdog
|
||||
local units = smem.rtu_sys.units
|
||||
|
||||
-- start unlinked (in case of restart)
|
||||
rtu_comms.unlink(rtu_state)
|
||||
|
||||
-- start clock
|
||||
loop_clock.start()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user