#580 minor updates for consistency
This commit is contained in:
@@ -71,7 +71,7 @@ function backplane.init(config, __shared_memory)
|
|||||||
|
|
||||||
-- comms modem is required if networked
|
-- comms modem is required if networked
|
||||||
if not (plc_state.wd_modem or plc_state.wl_modem) then
|
if not (plc_state.wd_modem or plc_state.wl_modem) then
|
||||||
println("startup> comms modem not found")
|
println("startup> no comms modem found")
|
||||||
log.warning("BKPLN: no comms modem on startup")
|
log.warning("BKPLN: no comms modem on startup")
|
||||||
|
|
||||||
plc_state.degraded = true
|
plc_state.degraded = true
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ function backplane.init(config, __shared_memory)
|
|||||||
|
|
||||||
-- at least one comms modem is required
|
-- at least one comms modem is required
|
||||||
if not ((_bp.wd_nic and _bp.wd_nic.is_connected()) or (_bp.wl_nic and _bp.wl_nic.is_connected())) then
|
if not ((_bp.wd_nic and _bp.wd_nic.is_connected()) or (_bp.wl_nic and _bp.wl_nic.is_connected())) then
|
||||||
println("startup> comms modem not found")
|
println("startup> no comms modem found")
|
||||||
log.warning("BKPLN: no comms modem on startup")
|
log.warning("BKPLN: no comms modem on startup")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -138,8 +138,7 @@ local function main()
|
|||||||
log.debug("startup> conn watchdog started")
|
log.debug("startup> conn watchdog started")
|
||||||
|
|
||||||
-- setup comms
|
-- setup comms
|
||||||
local nic = backplane.active_nic()
|
smem_sys.rtu_comms = rtu.comms(RTU_VERSION, backplane.active_nic(), smem_sys.conn_watchdog)
|
||||||
smem_sys.rtu_comms = rtu.comms(RTU_VERSION, nic, smem_sys.conn_watchdog)
|
|
||||||
log.debug("startup> comms init")
|
log.debug("startup> comms init")
|
||||||
|
|
||||||
-- init threads
|
-- init threads
|
||||||
|
|||||||
Reference in New Issue
Block a user