fixed RTU mgmt_pkt reference

This commit is contained in:
Mikayla Fischler
2022-05-02 17:34:57 -04:00
parent 1ac4de65a9
commit e3e370d3ab
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ function rtu_comms(modem, local_port, server_port)
elseif s_pkt.protocol() == PROTOCOLS.SCADA_MGMT then
local mgmt_pkt = comms.mgmt_packet()
if mgmt_pkt.decode(s_pkt) then
pkt = mgmt_packet.get()
pkt = mgmt_pkt.get()
end
else
log._error("illegal packet type " .. s_pkt.protocol(), true)