From 8819c8d99f61e1af26e9ef50f4a107ad75fb5d7e Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sun, 25 Jan 2026 13:06:19 -0600 Subject: [PATCH] fix control indexing --- content/novastar.qplug | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/content/novastar.qplug b/content/novastar.qplug index 801e52e..ba1ab81 100644 --- a/content/novastar.qplug +++ b/content/novastar.qplug @@ -130,7 +130,7 @@ function GetControls(props) UserPin = true }, { - Name = "IN0", + Name = "IN10", ControlType = "Button", ButtonType = "Trigger", PinStyle = "Input", @@ -735,7 +735,7 @@ function GetControlLayout(props) } - controls['IN0'] = { + controls['IN10'] = { Style = "Button", ButtonType = "Trigger", Legend = InputLabels[props['Model'].Value][10] ~= nil and InputLabels[props['Model'].Value][10] or"0", @@ -1279,13 +1279,8 @@ if (Controls) then sendCommand(v) end else - if(k == 10) then - Controls['IN0'].IsDisabled = true; - Controls['IN0'].IsInvisible = true; - else - Controls['IN'..k].IsDisabled = true; - Controls['IN'..k].IsInvisible = true; - end; + Controls['IN'..k].IsDisabled = true; + Controls['IN'..k].IsInvisible = true; end; end @@ -1338,7 +1333,7 @@ if (Controls) then Controls['IN7'].IsDisabled = true; Controls['IN8'].IsDisabled = true; Controls['IN9'].IsDisabled = true; - Controls['IN0'].IsDisabled = true; + Controls['IN10'].IsDisabled = true; Controls['Brightness'].IsDisabled = true; end; @@ -1347,4 +1342,4 @@ if (Controls) then sendBrightness(Properties['Default Brightness'].Value) end; -end +end \ No newline at end of file