Skip to content

Commit

Permalink
Merge pull request #6 from PepperDash/hotfix/allow-rs232-overwrite
Browse files Browse the repository at this point in the history
feature: added in "forcers232" config value
  • Loading branch information
jkdevito authored Jan 17, 2023
2 parents 25c4d6e + f400fe6 commit d4cb6fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SonyBraviaConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ public class SonyBraviaConfig

public long? WarmingTimeMs { get; set; }
public long? CoolingTimeMs { get; set; }
public bool ForceRs232 { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/SonyBraviaDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public SonyBraviaDevice(DeviceConfig config, IBasicCommunication comms)

_coms = comms;
var socket = _coms as ISocketStatus;
_comsIsRs232 = socket == null;
_comsIsRs232 = socket == null || props.ForceRs232;
if (_comsIsRs232)
{
_queueRs232 = new CrestronQueue<byte[]>(50);
Expand Down

0 comments on commit d4cb6fa

Please sign in to comment.