From fcde6f3b44d318aa986677c4a2c220d6ba73d3aa Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 10 Jul 2024 14:57:32 -0500 Subject: [PATCH 1/2] build(force-patch): add SERIES4 for release builds --- src/epi-sony-bravia.4Series.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/epi-sony-bravia.4Series.csproj b/src/epi-sony-bravia.4Series.csproj index 445fe6b..3843350 100644 --- a/src/epi-sony-bravia.4Series.csproj +++ b/src/epi-sony-bravia.4Series.csproj @@ -24,6 +24,10 @@ $(DefineConstants);SERIES4 + + $(DefineConstants);SERIES4 + + From e97061bad9e33d82f68c93ff1009345ccfc80032 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Wed, 10 Jul 2024 14:58:09 -0500 Subject: [PATCH 2/2] chore(force-patch): remove #IF for inputs --- src/SonyBraviaInputs.cs | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/SonyBraviaInputs.cs b/src/SonyBraviaInputs.cs index f478e5d..9eb97b5 100644 --- a/src/SonyBraviaInputs.cs +++ b/src/SonyBraviaInputs.cs @@ -2,16 +2,11 @@ using PepperDash.Core; using PepperDash.Essentials.Core.DeviceTypeInterfaces; using PepperDash.Essentials.Core.Queues; -using SonyBraviaEpi; using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace SonyBraviaEpi { -#if SERIES4 public class SonyBraviaInputs : ISelectableItems { private Dictionary _items = new Dictionary(); @@ -61,10 +56,10 @@ public class SonyBraviaInput : ISelectableItem { private bool _isSelected; - private readonly byte[] _command; + private readonly byte[] _command; private readonly IQueueMessage _inputCommand; - private readonly SonyBraviaDevice _parent; + private readonly SonyBraviaDevice _parent; public SonyBraviaInput(string key, string name, SonyBraviaDevice parent, IQueueMessage inputCommand) { @@ -77,7 +72,7 @@ public SonyBraviaInput(string key, string name, SonyBraviaDevice parent, IQueueM public SonyBraviaInput(string key, string name, SonyBraviaDevice parent, byte[] command) { Key = key; - Name = name; + Name = name; _command = command; _parent = parent; } @@ -104,17 +99,16 @@ public bool IsSelected public void Select() { - if(_parent.ComsIsRs232) + if (_parent.ComsIsRs232) { - Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "Sending input command for {name}: {command}",this, Name, ComTextHelper.GetEscapedText(_command)); + Debug.LogMessage(Serilog.Events.LogEventLevel.Information, "Sending input command for {name}: {command}", this, Name, ComTextHelper.GetEscapedText(_command)); + + _parent.SendRs232Command(_command); - _parent.SendRs232Command(_command); - return; } _parent.EnqueueCommand(_inputCommand); } } -#endif }