mirror of
https://github.com/jwetzell/q-sys-plugin-novastar.git
synced 2026-09-04 11:49:03 +00:00
try fixing receiving packets
This commit is contained in:
@@ -750,7 +750,7 @@ if (Controls) then
|
|||||||
for k,v in pairs(data) do
|
for k,v in pairs(data) do
|
||||||
response = response .. string.pack("B", v)
|
response = response .. string.pack("B", v)
|
||||||
end
|
end
|
||||||
print("Received Packet")
|
print("Processing Packet")
|
||||||
print(hex_dump(response))
|
print(hex_dump(response))
|
||||||
|
|
||||||
if data == getCmdString(NovaStar.Response.Connected) then
|
if data == getCmdString(NovaStar.Response.Connected) then
|
||||||
@@ -772,12 +772,8 @@ if (Controls) then
|
|||||||
|
|
||||||
NovaStar.socket.Data = function ()
|
NovaStar.socket.Data = function ()
|
||||||
print("Reading " .. NovaStar.socket.BufferLength .. " Bytes")
|
print("Reading " .. NovaStar.socket.BufferLength .. " Bytes")
|
||||||
local data = NovaStar.socket:ReadLine(TcpSocket.EOL.Lf);
|
local data = NovaStar.socket:Read(NovaStar.socket.BufferLength);
|
||||||
|
processResponse(data)
|
||||||
while (data ~= nil) do
|
|
||||||
processResponse(data)
|
|
||||||
data = NovaStar.socket:ReadLine(TcpSocket.EOL.Lf);
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
NovaStar.socket.Closed = function()
|
NovaStar.socket.Closed = function()
|
||||||
|
|||||||
Reference in New Issue
Block a user