supervisor debug log messages and #427 fix

This commit is contained in:
Mikayla Fischler
2024-02-21 12:58:49 -05:00
parent 910509d764
commit 96691d773a
4 changed files with 18 additions and 15 deletions

View File

@@ -199,9 +199,8 @@ function supervisor.comms(_version, nic, fp_ok)
-- pass the packet onto the session handler
session.in_queue.push_packet(packet)
else
-- unknown session, force a re-link
log.debug("PLC_ESTABLISH: no session but not an establish, forcing relink")
_send_establish(packet.scada_frame, ESTABLISH_ACK.DENY)
-- any other packet should be session related, discard it
log.debug("discarding RPLC packet without a known session")
end
elseif protocol == PROTOCOL.SCADA_MGMT then
---@cast packet mgmt_frame