Skip to content

Commit

Permalink
build(force-patch): Essentials 2.0.0-beta-2519
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed May 29, 2024
1 parent 0ae6179 commit 582eeff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
21 changes: 7 additions & 14 deletions src/SonyBraviaDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ private void PollRs232(List<byte[]> pollCommands)
pollIndex = 0;
}

var command = pollCommands[pollIndex];

Debug.Console(2, this, "Sending command {0}", ComTextHelper.GetEscapedText(command));
var command = pollCommands[pollIndex];

_lastCommand = command;
_coms.SendBytes(command);
Expand Down Expand Up @@ -806,7 +804,7 @@ public void ResetPolling()

public void SendRs232Command(byte[] command)
{
Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "Sending command: {command}",this, command);
// Debug.LogMessage(Serilog.Events.LogEventLevel.Verbose, "Sending command: {command}",this, command);

_lastCommand = command;
_coms.SendBytes(command);
Expand Down Expand Up @@ -885,15 +883,6 @@ private void ParseMessage(byte[] message)
_currentInput = Rs232ParsingUtils.ParseInputResponse(message);
CurrentInputFeedback.FireUpdate();

var inputNumber = message[3] << 8 | message[4];

var inputPort = InputPorts.FirstOrDefault((p) => (int) p.FeedbackMatchObject == inputNumber);

if(inputPort != null)
{
CurrentInputPort = inputPort;
}
#if SERIES4
if (Inputs.Items.ContainsKey(_currentInput))
{
foreach(var input in Inputs.Items)
Expand All @@ -903,8 +892,12 @@ private void ParseMessage(byte[] message)
}

Inputs.CurrentItem = _currentInput;
#endif

var inputNumber = message[3] << 8 | message[4];

var routingPort = InputPorts.FirstOrDefault((p) => p.FeedbackMatchObject.Equals(inputNumber));

CurrentInputPort = routingPort;

break;
case 0x05: //volume
Expand Down
2 changes: 1 addition & 1 deletion src/epi-sony-bravia.4Series.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="PepperDashEssentials" Version="2.0.0-alpha-2509" />
<PackageReference Include="PepperDashEssentials" Version="2.0.0-beta-2519" />
</ItemGroup>
</Project>

0 comments on commit 582eeff

Please sign in to comment.