mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Update video sync outputs at boot
This commit is contained in:
parent
3077b3f865
commit
369bdf5c66
1 changed files with 7 additions and 7 deletions
|
|
@ -205,6 +205,11 @@ namespace PepperDash.Essentials.DM
|
||||||
Dmps.DMOutputChange += Dmps_DMOutputChange;
|
Dmps.DMOutputChange += Dmps_DMOutputChange;
|
||||||
Dmps.DMSystemChange += Dmps_DMSystemChange;
|
Dmps.DMSystemChange += Dmps_DMSystemChange;
|
||||||
|
|
||||||
|
foreach (var input in VideoInputSyncFeedbacks)
|
||||||
|
{
|
||||||
|
input.Value.FireUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
return base.CustomActivate();
|
return base.CustomActivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -832,18 +837,13 @@ namespace PepperDash.Essentials.DM
|
||||||
}
|
}
|
||||||
void Dmps_DMOutputChange(Switch device, DMOutputEventArgs args)
|
void Dmps_DMOutputChange(Switch device, DMOutputEventArgs args)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "DMOutputChange Output: {0} EventId: {1}", args.Number, args.EventId.ToString());
|
//Debug.Console(2, this, "DMOutputChange Output: {0} EventId: {1}", args.Number, args.EventId.ToString());
|
||||||
|
|
||||||
var output = args.Number;
|
var output = args.Number;
|
||||||
|
|
||||||
DMOutput outputCard = Dmps.SwitcherOutputs[output] as DMOutput;
|
DMOutput outputCard = Dmps.SwitcherOutputs[output] as DMOutput;
|
||||||
|
|
||||||
if (args.EventId == DMOutputEventIds.VolumeEventId &&
|
if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId
|
||||||
VolumeControls.ContainsKey(output))
|
|
||||||
{
|
|
||||||
VolumeControls[args.Number].VolumeEventFromChassis();
|
|
||||||
}
|
|
||||||
else if (args.EventId == DMOutputEventIds.OnlineFeedbackEventId
|
|
||||||
&& OutputEndpointOnlineFeedbacks.ContainsKey(output))
|
&& OutputEndpointOnlineFeedbacks.ContainsKey(output))
|
||||||
{
|
{
|
||||||
OutputEndpointOnlineFeedbacks[output].FireUpdate();
|
OutputEndpointOnlineFeedbacks[output].FireUpdate();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue