cleanup and fixes
This commit is contained in:
@@ -638,7 +638,7 @@ function facility.new(num_reactors, cooling_conf)
|
||||
if e_db.radiation_raw > max_rad then max_rad = e_db.radiation_raw end
|
||||
end
|
||||
|
||||
astatus.radiation = max_rad > ALARM_LIMS.FAC_HIGH_RAD
|
||||
astatus.radiation = max_rad >= ALARM_LIMS.FAC_HIGH_RAD
|
||||
else
|
||||
-- don't clear, if it is true then we lost it with high radiation, so just keep alarming
|
||||
-- operator can restart the system or hit the stop/reset button
|
||||
|
||||
@@ -41,9 +41,6 @@ function imatrix.new(session_id, unit_id, advert, out_queue)
|
||||
if advert.type ~= RTU_UNIT_TYPE.IMATRIX then
|
||||
log.error("attempt to instantiate imatrix RTU for type " .. types.rtu_type_to_string(advert.type))
|
||||
return nil
|
||||
elseif not util.is_int(advert.index) then
|
||||
log.error("attempt to instantiate dynamicv RTU without index")
|
||||
return nil
|
||||
end
|
||||
|
||||
local log_tag = util.c("session.rtu(", session_id, ").imatrix[@", unit_id, "]: ")
|
||||
|
||||
Reference in New Issue
Block a user