mirror of
https://github.com/jwetzell/q-sys-plugin-novastar.git
synced 2026-08-20 20:39:10 +00:00
Send Display Normal on input change
This commit is contained in:
+13
-2
@@ -593,6 +593,8 @@ if (Controls) then
|
||||
{0x00,0x80,0xFE,0x00,0x01,0x00,0xFF,0xFF,0x01,0x00,0x01,0x01,0x00,0x02,0x01,0x00,0x09,0xE1,0x58}, --Grayscale
|
||||
{0x00,0x80,0xFE,0x00,0x01,0x00,0xFF,0xFF,0x01,0x00,0x01,0x01,0x00,0x02,0x01,0x00,0x0A,0xE2,0x58} --Aging-All
|
||||
},
|
||||
DisplayNormal = { 0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x50,0x00,0x20,0x02,0x01,0x00,0x00,0xC7,0x56 },
|
||||
DisplayNormalAlt = { 0x00,0x38,0xFE,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x04,0x00,0x00,0x13,0x01,0x00,0x03,0xA7,0x56 },
|
||||
Inputs = {
|
||||
VX4S = {
|
||||
{0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x2D,0x00,0x20,0x02,0x01,0x00,0x10,0xB4,0x56}, --DVI
|
||||
@@ -700,9 +702,13 @@ if (Controls) then
|
||||
end
|
||||
|
||||
function sendCommand(cmd)
|
||||
if NovaStar.socket.IsConnected then
|
||||
print("Sending packet to connected NovaStar")
|
||||
else
|
||||
print("Following would have been sent if NovaStar was connected")
|
||||
end;
|
||||
print(hex_dump(getCmdString(cmd)))
|
||||
if NovaStar.socket.IsConnected then
|
||||
print("Sending Packet")
|
||||
print(hex_dump(getCmdString(cmd)))
|
||||
NovaStar.socket:Write(getCmdString(NovaStar.Commands.Preamble) .. getCmdString(cmd))
|
||||
end
|
||||
end
|
||||
@@ -792,6 +798,11 @@ if (Controls) then
|
||||
if (v ~= nil and #v > 1) then
|
||||
print("value is not nill and length greater than 1")
|
||||
Controls['IN'..k].EventHandler = function()
|
||||
if(Properties['Model'].Value ~= 'VX6S') then
|
||||
sendCommand(NovaStar.Commands.DisplayNormal)
|
||||
else
|
||||
sendCommand(NovaStar.Commands.DisplayNormalAlt)
|
||||
end;
|
||||
sendCommand(v)
|
||||
end
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user