apparently I forgot how to spell receive a few more times

This commit is contained in:
Mikayla Fischler 2022-04-25 15:49:04 -04:00
parent b861d3f668
commit 3ef2902829
3 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@ function comms_init(id, modem, local_port, server_port, reactor, iss)
local s_pkt = scada_packet()
-- parse packet as generic SCADA packet
s_pkt.recieve(side, sender, reply_to, message, distance)
s_pkt.receive(side, sender, reply_to, message, distance)
if s_pkt.is_valid() then
-- get as RPLC packet

View File

@ -159,7 +159,7 @@ function rtu_comms(modem, local_port, server_port)
local s_pkt = comms.scada_packet()
-- parse packet as generic SCADA packet
s_pkt.recieve(side, sender, reply_to, message, distance)
s_pkt.receive(side, sender, reply_to, message, distance)
if s_pkt.is_valid() then
-- get as MODBUS TCP packet

View File

@ -67,7 +67,7 @@ function superv_comms(num_reactors, modem, dev_listen, coord_listen)
local s_pkt = scada_packet()
-- parse packet as generic SCADA packet
s_pkt.recieve(side, sender, reply_to, message, distance)
s_pkt.receive(side, sender, reply_to, message, distance)
if s_pkt.is_valid() then
-- get as MODBUS TCP packet
@ -146,7 +146,7 @@ function superv_comms(num_reactors, modem, dev_listen, coord_listen)
log._debug("illegal packet type " .. protocol .. " on device listening channel")
end
-- coordinator listening channel
elseif reciever == self.coord_listen then
elseif receiver == self.coord_listen then
if protocol == PROTOCOLS.SCADA_MGMT then
-- SCADA management packet
elseif protocol == PROTOCOLS.COORD_DATA then