Compacts HDCP events into one case

This commit is contained in:
Alex Johnson 2020-04-09 14:31:38 -04:00
parent 602fb621f9
commit c709ba710a

View file

@ -803,26 +803,10 @@ namespace PepperDash.Essentials.DM
break; break;
} }
case DMInputEventIds.HdcpCapabilityFeedbackEventId: case DMInputEventIds.HdcpCapabilityFeedbackEventId:
{
Debug.Console(2, this, "DM Input {0} HdcpCapabilityFeedbackEventId", args.Number);
if (InputCardHdcpCapabilityFeedbacks[args.Number] != null)
InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate();
else
Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
break;
}
case DMInputEventIds.HdcpSupportOnEventId: case DMInputEventIds.HdcpSupportOnEventId:
{
Debug.Console(2, this, "DM Input {0} HdcpSupportOnEventId", args.Number);
if (InputCardHdcpCapabilityFeedbacks[args.Number] != null)
InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate();
else
Debug.Console(1, this, "No index of {0} found in InputCardHdcpCapabilityFeedbacks");
break;
}
case DMInputEventIds.HdcpSupportOffEventId: case DMInputEventIds.HdcpSupportOffEventId:
{ {
Debug.Console(2, this, "DM Input {0} HdcpSupportOffEventId", args.Number); Debug.Console(2, this, "DM Input {0} {1}", args.Number, args.EventId.ToString());
if (InputCardHdcpCapabilityFeedbacks[args.Number] != null) if (InputCardHdcpCapabilityFeedbacks[args.Number] != null)
InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate(); InputCardHdcpCapabilityFeedbacks[args.Number].FireUpdate();
else else