#574 ignore failure to check formed on disconnected devices
This commit is contained in:
parent
9b443709f4
commit
78225a8cf4
@ -31,7 +31,7 @@ local sna_rtu = require("rtu.dev.sna_rtu")
|
|||||||
local sps_rtu = require("rtu.dev.sps_rtu")
|
local sps_rtu = require("rtu.dev.sps_rtu")
|
||||||
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
||||||
|
|
||||||
local RTU_VERSION = "v1.10.18"
|
local RTU_VERSION = "v1.10.19"
|
||||||
|
|
||||||
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
|
local RTU_UNIT_TYPE = types.RTU_UNIT_TYPE
|
||||||
local RTU_HW_STATE = databus.RTU_HW_STATE
|
local RTU_HW_STATE = databus.RTU_HW_STATE
|
||||||
|
|||||||
@ -541,7 +541,7 @@ function threads.thread__unit_comms(smem, unit)
|
|||||||
rtu_comms.send_remounted(unit.uid)
|
rtu_comms.send_remounted(unit.uid)
|
||||||
elseif (is_formed == false) and unit.formed then
|
elseif (is_formed == false) and unit.formed then
|
||||||
log.warning(util.c(detail_name, " is no longer formed"))
|
log.warning(util.c(detail_name, " is no longer formed"))
|
||||||
elseif is_formed == nil then
|
elseif (is_formed == nil) and (unit.hw_state ~= RTU_HW_STATE.OFFLINE) then
|
||||||
log.error(util.c(detail_name, " failed to check if formed, attempting remount..."))
|
log.error(util.c(detail_name, " failed to check if formed, attempting remount..."))
|
||||||
|
|
||||||
local type, dev = ppm.remount(unit.name)
|
local type, dev = ppm.remount(unit.name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user