updated globals list, fixed packet references that were linking to old controller mistakenly

This commit is contained in:
Mikayla Fischler
2022-05-10 17:17:55 -04:00
parent f4e397ebb1
commit 22a6159520
3 changed files with 5 additions and 4 deletions

View File

@@ -99,8 +99,8 @@ rtu.new_session = function (id, in_queue, out_queue)
self.connected = false
elseif pkt.type == SCADA_MGMT_TYPES.RTU_ADVERT then
-- RTU unit advertisement
for i = 1, packet.length do
local unit = packet.data[i]
for i = 1, pkt.length do
local unit = pkt.data[i]
end
else
log.debug(log_header .. "handler received unsupported SCADA_MGMT packet type " .. pkt.type)