#96 RTU starts unlinked now on main thread start

This commit is contained in:
Mikayla Fischler
2022-09-17 17:04:57 -04:00
parent 6686d8ea62
commit 3267e7ff13
3 changed files with 6 additions and 3 deletions

View File

@@ -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
} }

View File

@@ -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

View File

@@ -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()