Skip to content

Commit

Permalink
fix: paced hdmi commands
Browse files Browse the repository at this point in the history
  • Loading branch information
equinoy committed Aug 19, 2024
1 parent c555415 commit 1535e3a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions src/SonyBraviaDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ public static void Poll(object o)
commands
.ToList()
.ForEach(command =>
{
CommandQueue.Enqueue(command);
Thread.Sleep(100);
});
{
CommandQueue.Enqueue(command);
Thread.Sleep(100);
});
}

/// <summary>
Expand Down Expand Up @@ -372,6 +372,7 @@ public void BuildInputRoutingPorts()
/// </summary>
public void InputHdmi1()
{
Thread.Sleep(500);
CommandQueue.Enqueue(_comsIsRs232
? Rs232Commands.GetHdmi1(_coms)
: SimpleIpCommands.GetInputCommand(_coms, SimpleIpCommands.InputTypes.Hdmi, 1));
Expand All @@ -382,6 +383,7 @@ public void InputHdmi1()
/// </summary>
public void InputHdmi2()
{
Thread.Sleep(500);
CommandQueue.Enqueue(_comsIsRs232
? Rs232Commands.GetHdmi2(_coms)
: SimpleIpCommands.GetInputCommand(_coms, SimpleIpCommands.InputTypes.Hdmi, 2));
Expand All @@ -392,6 +394,7 @@ public void InputHdmi2()
/// </summary>
public void InputHdmi3()
{
Thread.Sleep(500);
CommandQueue.Enqueue(_comsIsRs232
? Rs232Commands.GetHdmi3(_coms)
: SimpleIpCommands.GetInputCommand(_coms, SimpleIpCommands.InputTypes.Hdmi, 3));
Expand All @@ -402,6 +405,7 @@ public void InputHdmi3()
/// </summary>
public void InputHdmi4()
{
Thread.Sleep(500);
CommandQueue.Enqueue(_comsIsRs232
? Rs232Commands.GetHdmi4(_coms)
: SimpleIpCommands.GetInputCommand(_coms, SimpleIpCommands.InputTypes.Hdmi, 4));
Expand All @@ -412,6 +416,7 @@ public void InputHdmi4()
/// </summary>
public void InputHdmi5()
{
Thread.Sleep(500);
CommandQueue.Enqueue(_comsIsRs232
? Rs232Commands.GetHdmi5(_coms)
: SimpleIpCommands.GetInputCommand(_coms, SimpleIpCommands.InputTypes.Hdmi, 5));
Expand Down
6 changes: 3 additions & 3 deletions src/SonyBraviaEpi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
<ItemGroup>
<Reference Include="Essentials Devices Common, Version=1.9.6.35019, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\PepperDashEssentials\lib\net35\Essentials Devices Common.dll</HintPath>
<HintPath>..\..\stjn-sln101-health_sceinces_ctr\p01-essentials\PepperDashEssentials\lib\net35\Essentials Devices Common.dll</HintPath>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="PepperDash_Core, Version=1.1.0.33266, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Core.dll</HintPath>
<HintPath>..\..\stjn-sln101-health_sceinces_ctr\p01-essentials\PepperDashEssentials\lib\net35\PepperDash_Core.dll</HintPath>
</Reference>
<Reference Include="PepperDash_Essentials_Core, Version=1.9.6.35015, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Essentials_Core.dll</HintPath>
<HintPath>..\..\stjn-sln101-health_sceinces_ctr\p01-essentials\PepperDashEssentials\lib\net35\PepperDash_Essentials_Core.dll</HintPath>
</Reference>
<Reference Include="SimplSharpCustomAttributesInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down

0 comments on commit 1535e3a

Please sign in to comment.