mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-17 21:54:54 +00:00
Added a check to verify that the number of inputs on a display is not greater than the size of the joinspan
This commit is contained in:
@@ -192,6 +192,8 @@ namespace PepperDash.Essentials.Core
|
||||
|
||||
var count = 0;
|
||||
foreach (var input in displayDevice.InputPorts)
|
||||
{
|
||||
if (count < joinMap.InputSelectOffset.JoinSpan)
|
||||
{
|
||||
inputKeys.Add(input.Key);
|
||||
var tempKey = inputKeys.ElementAt(count - 1);
|
||||
@@ -200,6 +202,7 @@ namespace PepperDash.Essentials.Core
|
||||
trilist.StringInput[(ushort)(joinMap.InputNamesOffset.JoinNumber + count)].StringValue = input.Key.ToString();
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Console(2, displayDevice, "Setting Input Select Action on Analog Join {0}", joinMap.InputSelect);
|
||||
trilist.SetUShortSigAction(joinMap.InputSelect.JoinNumber, (a) =>
|
||||
|
||||
Reference in New Issue
Block a user