Removes redundant .FireUpdate() calls in Tx_OnlineStatusChange

This commit is contained in:
Neil Dorin
2021-02-08 16:09:50 -07:00
parent 4f7ad4ccb9
commit 6ef8ba3639

View File

@@ -314,6 +314,8 @@ namespace PepperDash.Essentials.DM
}
void Tx_OnlineStatusChange(GenericBase currentDevice, OnlineOfflineEventArgs args)
{
if (args.DeviceOnLine)
{
var localVideoInputPort =
InputPorts.FirstOrDefault(p => (eVst)p.Selector == Tx.VideoSourceFeedback);
@@ -326,6 +328,7 @@ namespace PepperDash.Essentials.DM
OnSwitchChange(new RoutingNumericEventArgs(1, VideoSourceNumericFeedback.UShortValue, OutputPorts.First(), localVideoInputPort, eRoutingSignalType.Video));
OnSwitchChange(new RoutingNumericEventArgs(1, AudioSourceNumericFeedback.UShortValue, OutputPorts.First(), localAudioInputPort, eRoutingSignalType.Audio));
}
}
void Tx_BaseEvent(GenericBase device, BaseEventArgs args)
{