mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
refactor: modify feedback for HDCP capability
This commit is contained in:
parent
243c7cc3ee
commit
e623c482a9
1 changed files with 6 additions and 6 deletions
|
|
@ -146,9 +146,11 @@ namespace PepperDash.Essentials.DM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//yeah this is gross - but it's the quickest way to do this...
|
//yeah this is gross - but it's the quickest way to do this...
|
||||||
HdcpStateFeedback = new IntFeedback(() => Math.Max((int) tx.DisplayPortInput.HdcpCapabilityFeedback,
|
HdcpStateFeedback = new IntFeedback(() => {
|
||||||
Math.Max((int) tx.HdmiInputs[1].HdcpCapabilityFeedback,
|
var states = new[] {(int) tx.DisplayPortInput.HdcpCapabilityFeedback, (int) tx.HdmiInputs[1].HdcpCapabilityFeedback, (int) tx.HdmiInputs[2].HdcpCapabilityFeedback};
|
||||||
(int) tx.HdmiInputs[2].HdcpCapabilityFeedback)));
|
|
||||||
|
return states.Max();
|
||||||
|
});
|
||||||
|
|
||||||
HdcpSupportCapability = eHdcpCapabilityType.Hdcp2_2Support;
|
HdcpSupportCapability = eHdcpCapabilityType.Hdcp2_2Support;
|
||||||
|
|
||||||
|
|
@ -158,7 +160,6 @@ namespace PepperDash.Essentials.DM
|
||||||
|
|
||||||
DisplayPortVideoSyncFeedback = new BoolFeedback(() => (bool)tx.DisplayPortInput.SyncDetectedFeedback.BoolValue);
|
DisplayPortVideoSyncFeedback = new BoolFeedback(() => (bool)tx.DisplayPortInput.SyncDetectedFeedback.BoolValue);
|
||||||
|
|
||||||
|
|
||||||
var combinedFuncs = new VideoStatusFuncsWrapper
|
var combinedFuncs = new VideoStatusFuncsWrapper
|
||||||
{
|
{
|
||||||
HdcpActiveFeedbackFunc = () =>
|
HdcpActiveFeedbackFunc = () =>
|
||||||
|
|
@ -425,7 +426,6 @@ namespace PepperDash.Essentials.DM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#region IIROutputPorts Members
|
#region IIROutputPorts Members
|
||||||
public CrestronCollection<IROutputPort> IROutputPorts { get { return Tx.IROutputPorts; } }
|
public CrestronCollection<IROutputPort> IROutputPorts { get { return Tx.IROutputPorts; } }
|
||||||
public int NumberOfIROutputPorts { get { return Tx.NumberOfIROutputPorts; } }
|
public int NumberOfIROutputPorts { get { return Tx.NumberOfIROutputPorts; } }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue