#96 RTU starts unlinked now on main thread start
This commit is contained in:
@@ -15,12 +15,12 @@ config.LOG_MODE = 0
|
|||||||
-- RTU peripheral devices (named: side/network device name)
|
-- RTU peripheral devices (named: side/network device name)
|
||||||
config.RTU_DEVICES = {
|
config.RTU_DEVICES = {
|
||||||
{
|
{
|
||||||
name = "boiler_1",
|
name = "boilerValve_0",
|
||||||
index = 1,
|
index = 1,
|
||||||
for_reactor = 1
|
for_reactor = 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "turbine_1",
|
name = "turbineValve_0",
|
||||||
index = 1,
|
index = 1,
|
||||||
for_reactor = 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 turbine_rtu = require("rtu.dev.turbine_rtu")
|
||||||
local turbinev_rtu = require("rtu.dev.turbinev_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
|
local rtu_t = types.rtu_t
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ function threads.thread__main(smem)
|
|||||||
local conn_watchdog = smem.rtu_sys.conn_watchdog
|
local conn_watchdog = smem.rtu_sys.conn_watchdog
|
||||||
local units = smem.rtu_sys.units
|
local units = smem.rtu_sys.units
|
||||||
|
|
||||||
|
-- start unlinked (in case of restart)
|
||||||
|
rtu_comms.unlink(rtu_state)
|
||||||
|
|
||||||
-- start clock
|
-- start clock
|
||||||
loop_clock.start()
|
loop_clock.start()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user