#268 fixed incorrect info print on extra wireless modem connection

This commit is contained in:
Mikayla Fischler 2023-07-11 21:06:47 -04:00
parent 4ed6ec1c63
commit 084a153a79
7 changed files with 13 additions and 5 deletions

View File

@ -22,7 +22,7 @@ local sounder = require("coordinator.sounder")
local apisessions = require("coordinator.session.apisessions")
local COORDINATOR_VERSION = "v0.20.1"
local COORDINATOR_VERSION = "v0.20.2"
local println = util.println
local println_ts = util.println_ts
@ -271,6 +271,8 @@ local function main()
log_sys("comms modem reconnected")
nic.connect(device)
iocontrol.fp_has_modem(true)
elseif device.isWireless() then
log.info("unused wireless modem reconnected")
else
log_sys("wired modem reconnected")
end

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,7 @@ local plc = require("reactor-plc.plc")
local renderer = require("reactor-plc.renderer")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "v1.5.3"
local R_PLC_VERSION = "v1.5.4"
local println = util.println
local println_ts = util.println_ts

View File

@ -249,6 +249,8 @@ function threads.thread__main(smem, init)
if not plc_state.no_reactor then
plc_state.degraded = false
end
elseif device.isWireless() then
log.info("unused wireless modem reconnected")
else
log.info("wired modem reconnected")
end

View File

@ -30,7 +30,7 @@ local sna_rtu = require("rtu.dev.sna_rtu")
local sps_rtu = require("rtu.dev.sps_rtu")
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
local RTU_VERSION = "v1.5.1"
local RTU_VERSION = "v1.5.2"
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
local RTU_UNIT_HW_STATE = databus.RTU_UNIT_HW_STATE

View File

@ -142,6 +142,8 @@ function threads.thread__main(smem)
log.info("comms modem reconnected")
databus.tx_hw_modem(true)
elseif device.isWireless() then
log.info("unused wireless modem reconnected")
else
log.info("wired modem reconnected")
end

View File

@ -21,7 +21,7 @@ local supervisor = require("supervisor.supervisor")
local svsessions = require("supervisor.session.svsessions")
local SUPERVISOR_VERSION = "v0.19.3"
local SUPERVISOR_VERSION = "v0.19.4"
local println = util.println
local println_ts = util.println_ts
@ -178,6 +178,8 @@ local function main()
log.info("comms modem reconnected")
databus.tx_hw_modem(true)
elseif device.isWireless() then
log.info("unused wireless modem reconnected")
else
log.info("wired modem reconnected")
end