Skip to content

Commit

Permalink
feat: changes to older input commands, fixes input port assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
aknous committed Feb 1, 2024
1 parent 574f684 commit 5f70668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Binary file modified PDT.PanasonicDisplay.EPI/PDT.PanasonicDisplay.projectinfo
Binary file not shown.
11 changes: 6 additions & 5 deletions PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public class PanasonicDisplay : TwoWayDisplayBase, IBasicVolumeWithFeedback, ICo

#region Command constants
public const string InputGetCmd = "\x02QMI\x03";
public const string Hdmi1Cmd = "\x02IMS:HM1\x03";
public const string Hdmi2Cmd = "\x02IMS:HM2\x03";
public const string Hdmi1Cmd = "\x02IMS:SL1\x03";
public const string Hdmi2Cmd = "\x02IMS:SL2\x03";
public const string Hdmi3Cmd = "";
public const string Hdmi4Cmd = "";
public const string Dp1Cmd = "";
Expand Down Expand Up @@ -658,14 +658,15 @@ public void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, E

PowerIsOnFeedback.LinkInputSig(trilist.BooleanInput[joinMap.PowerOn.JoinNumber]);

int count = 1;
int count = 0;
var displayBase = this as PepperDash.Essentials.Core.DisplayBase;
foreach (var input in InputPorts)
{
//displayDevice.InputKeys.Add(input.Key.ToString());
//var tempKey = InputKeys.ElementAt(count - 1);
trilist.SetSigTrueAction((ushort)(joinMap.InputSelectOffset.JoinNumber + count), () => { ExecuteSwitch(InputPorts[input.Key.ToString()].Selector); });
Debug.Console(2, this, "Setting Input Select Action on Digital Join {0} to Input: {1}", joinMap.InputSelectOffset.JoinNumber + count, InputPorts[input.Key.ToString()].Key.ToString());
var port = InputPorts[input.Key.ToString()];
trilist.SetSigTrueAction((ushort)(joinMap.InputSelectOffset.JoinNumber + count), () => { ExecuteSwitch(port.Selector); });
Debug.Console(2, this, "Setting Input Select Action on Digital Join {0} to Input: {1}", joinMap.InputSelectOffset.JoinNumber + count, port.Key.ToString());
trilist.StringInput[(ushort)(joinMap.InputNamesOffset.JoinNumber + count)].StringValue = input.Key.ToString();
count++;
}
Expand Down

0 comments on commit 5f70668

Please sign in to comment.