updated globals list, fixed packet references that were linking to old controller mistakenly
This commit is contained in:
@@ -234,7 +234,7 @@ threads.thread__unit_comms = function (smem, unit)
|
||||
elseif msg.qtype == mqueue.TYPE.PACKET then
|
||||
-- received a packet
|
||||
unit.modbus_busy = true
|
||||
local return_code, reply = unit.modbus_io.handle_packet(packet)
|
||||
local return_code, reply = unit.modbus_io.handle_packet(msg.message)
|
||||
rtu_comms.send_modbus(reply)
|
||||
unit.modbus_busy = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user