From 5f7066877897385f51dec3c159fd444e7eef84cd Mon Sep 17 00:00:00 2001 From: Andrew Knous Date: Thu, 1 Feb 2024 09:53:25 -0500 Subject: [PATCH] feat: changes to older input commands, fixes input port assignment --- .../PDT.PanasonicDisplay.projectinfo | Bin 2056 -> 2080 bytes PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs | 11 ++++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/PDT.PanasonicDisplay.EPI/PDT.PanasonicDisplay.projectinfo b/PDT.PanasonicDisplay.EPI/PDT.PanasonicDisplay.projectinfo index fa924c203e473c11b729009f1ca6b2dcba7cfd6e..dd0503b2f11096297746cf315236aa04583f094f 100644 GIT binary patch delta 1901 zcmV-z2a@=R5TFo{w@};O*?qI~@X`LKkM?)Rd;2^0@7+Jx-nsv1XNTI&solw=-}m?Z zs>$o-_x*jd<*d%He&64hp#HwU?`hNI%eEk#(wF7>qF7Rc7$)32isO;-6@TGUSOWaC z{q1F4{d7KU&z9%av!cwG*&_d0#yI-TO3)|>4MOy+d0N!%wV9>Y*G-!*UI=O%ri;dM zQD=*@*_-TQc;-&3#fnBc`*L~9DKszqkm&P1GkUt1kib=5}IFm)WGu zpH~-z#fAO!q*`6Ssh(BkjDL{-=#deRy^ns$=%X)+WwBT4(_%vVT%UQmh7CG_T_sm4x4=3WJ zrg^Tb<@j~6Se38mS-m1*9zV@5i)sFPy;@aus{oa{(=5yPC;NN%A7-3ttRO6tj({o>yC^)*xTRB_jdQP z?B2oty}iAI?0^33;Vw~@JcNhmp;vG_z`-Ql0{n+eQm5gIo_!fk z)WK|L?>yVv-Ffioe!jCeolbUl_aE*~v-91(z1jVHx0$F8)=fzNp%~qxr~6e46h}_U`TM?>)>veYiKB-Mhb&Pd~jkeYo>r zlHX#QLb$;!-2(cD%u?9%|H~)o-mNByewlUW=)umXyZOQNAb*gP<#>?qkvo>{-Y3f5 zdvH#H>whigC;%JUrkjC($P@(~|G#{OI(dkJ5xtq$dHy=D3EW9m&pLC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2;q{l?>2Ub}Hk&JR9C#5~>EIlq^GnosZF zyPwm##10LRY}C)~xENJ$Y@N{T{}=Ps35foGFkj#QCBJ0!(N9ta@m$x-N%q!dE28-S M0OpCG%akYp0F5q1MF0Q* diff --git a/PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs b/PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs index caca2ec..2000a9d 100644 --- a/PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs +++ b/PDT.PanasonicDisplay.EPI/PanasonicDisplay.cs @@ -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 = ""; @@ -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++; }