connected vs reconnected consistency
This commit is contained in:
@@ -307,14 +307,14 @@ function backplane.attach(type, device, iface)
|
|||||||
|
|
||||||
_bp.displays.main = device
|
_bp.displays.main = device
|
||||||
|
|
||||||
log.info("BKPLN: main display connected")
|
log.info("BKPLN: main display reconnected")
|
||||||
iocontrol.fp_monitor_state("main", 2)
|
iocontrol.fp_monitor_state("main", 2)
|
||||||
elseif _bp.displays.flow_iface == iface then
|
elseif _bp.displays.flow_iface == iface then
|
||||||
is_used = true
|
is_used = true
|
||||||
|
|
||||||
_bp.displays.flow = device
|
_bp.displays.flow = device
|
||||||
|
|
||||||
log.info("BKPLN: flow display connected")
|
log.info("BKPLN: flow display reconnected")
|
||||||
iocontrol.fp_monitor_state("flow", 2)
|
iocontrol.fp_monitor_state("flow", 2)
|
||||||
else
|
else
|
||||||
for idx, monitor in ipairs(_bp.displays.unit_ifaces) do
|
for idx, monitor in ipairs(_bp.displays.unit_ifaces) do
|
||||||
@@ -323,7 +323,7 @@ function backplane.attach(type, device, iface)
|
|||||||
|
|
||||||
_bp.displays.unit_displays[idx] = device
|
_bp.displays.unit_displays[idx] = device
|
||||||
|
|
||||||
log.info("BKPLN: unit " .. idx .. " display connected")
|
log.info("BKPLN: unit " .. idx .. " display reconnected")
|
||||||
iocontrol.fp_monitor_state(idx, 2)
|
iocontrol.fp_monitor_state(idx, 2)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
@@ -332,7 +332,7 @@ function backplane.attach(type, device, iface)
|
|||||||
|
|
||||||
-- notify renderer if it is using it
|
-- notify renderer if it is using it
|
||||||
if is_used then
|
if is_used then
|
||||||
log_sys(util.c("configured monitor ", iface, " connected"))
|
log_sys(util.c("configured monitor ", iface, " reconnected"))
|
||||||
_bp.smem.q.mq_render.push_data(MQ__RENDER_DATA.MON_CONNECT, iface)
|
_bp.smem.q.mq_render.push_data(MQ__RENDER_DATA.MON_CONNECT, iface)
|
||||||
else
|
else
|
||||||
log_sys(util.c("unused monitor ", iface, " connected"))
|
log_sys(util.c("unused monitor ", iface, " connected"))
|
||||||
|
|||||||
@@ -132,8 +132,8 @@ function backplane.attach(iface, type, device, print_no_fp)
|
|||||||
dev.reactor = device
|
dev.reactor = device
|
||||||
state.no_reactor = false
|
state.no_reactor = false
|
||||||
|
|
||||||
print_no_fp("reactor reconnected")
|
print_no_fp("reactor connected")
|
||||||
log.info("BKPLN: reactor reconnected")
|
log.info("BKPLN: reactor connected")
|
||||||
|
|
||||||
-- we need to assume formed here as we cannot check in this main loop
|
-- we need to assume formed here as we cannot check in this main loop
|
||||||
-- RPS will identify if it isn't and this will get set false later
|
-- RPS will identify if it isn't and this will get set false later
|
||||||
@@ -166,7 +166,7 @@ function backplane.attach(iface, type, device, print_no_fp)
|
|||||||
wd_nic.connect(device)
|
wd_nic.connect(device)
|
||||||
|
|
||||||
log.info("BKPLN: WIRED PHY_UP " .. iface)
|
log.info("BKPLN: WIRED PHY_UP " .. iface)
|
||||||
print_no_fp("wired comms modem reconnected")
|
print_no_fp("wired comms modem connected")
|
||||||
|
|
||||||
state.wd_modem = true
|
state.wd_modem = true
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ function backplane.attach(iface, type, device, print_no_fp)
|
|||||||
wl_nic.connect(device)
|
wl_nic.connect(device)
|
||||||
|
|
||||||
log.info("BKPLN: WIRELESS PHY_UP " .. iface)
|
log.info("BKPLN: WIRELESS PHY_UP " .. iface)
|
||||||
print_no_fp("wireless comms modem reconnected")
|
print_no_fp("wireless comms modem connected")
|
||||||
|
|
||||||
state.wl_modem = true
|
state.wl_modem = true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user