Skip to content

Commit

Permalink
fix: working on some input switching weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
ngenovese11 committed Feb 16, 2024
1 parent 5db3261 commit 0ecb794
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
30 changes: 28 additions & 2 deletions epi-display-panasonic-projectors/PanasonicProjectorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace PepperDash.Essentials.Displays
/// <example>
/// "EssentialsPluginDeviceTemplate" renamed to "SamsungMdcDevice"
/// </example>
public class PanasonicProjectorController : TwoWayDisplayBase, IBridgeAdvanced, ICommunicationMonitor
public class PanasonicProjectorController : TwoWayDisplayBase, IBridgeAdvanced, ICommunicationMonitor, IBasicVideoMuteWithFeedback
{
private const long DefaultWarmUpTimeMs = 1000;
private const long DefaultCooldownTimeMs = 2000;
Expand Down Expand Up @@ -426,7 +426,16 @@ private string GetHash(string randomNumber)

public void SetInput(eInputTypes input)
{
SendText(_commandBuilder.GetCommand("IIS", input.ToString().ToUpper()));
if (input == eInputTypes.Hd1)
{

SendText(_commandBuilder.GetCommand("IIS", "AU1,HD1"));
}
else
{

SendText(_commandBuilder.GetCommand("IIS", input.ToString().ToUpper()));
}

CurrentInput = input.ToString();
}
Expand Down Expand Up @@ -610,5 +619,22 @@ public StatusMonitorBase CommunicationMonitor
{
get { return _commsMonitor; }
}

public void VideoMuteToggle()
{
throw new NotImplementedException();
}

public void VideoMuteOn()
{
SendText(_commandBuilder.GetCommand("VMT", "1"));
}

public void VideoMuteOff()
{
SendText(_commandBuilder.GetCommand("VMT", "0"));
}

public BoolFeedback VideoMuteIsOn { get; private set; }
}
}
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<packages>
<package id="PepperDashEssentials" version="1.10.5" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
<package id="PepperDashEssentials" version="1.15.5" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
</packages>

0 comments on commit 0ecb794

Please sign in to comment.