fix: videowall mode raw fb for dm-rmc-4kz-scaler-c

This commit is contained in:
Colin Denig
2024-07-11 15:42:25 -04:00
parent 192991cc65
commit 0eb2436fa0
2 changed files with 47 additions and 30 deletions

View File

@@ -276,13 +276,26 @@ namespace PepperDash.Essentials.DM
void Scaler_OutputChange(EndpointScalerOutput scalerOutput, ScalerOutputEventArgs args) void Scaler_OutputChange(EndpointScalerOutput scalerOutput, ScalerOutputEventArgs args)
{ {
if (scalerOutput == null)
{
Debug.Console(1, this, "Scaler Output object is null");
return;
}
if (args == null)
{
Debug.Console(1, this, "Scaler Output Args are null");
return;
}
Debug.Console(2, this, "Scaler Event ID: {0}", args.EventId);
switch (args.EventId) switch (args.EventId)
{ {
case ScalerOutputEventIds.WallModeFeedbackEventId: case ScalerOutputEventIds.WallModeFeedbackEventId:
VideoWallModeRawFeedback.FireUpdate(); VideoWallModeRawFeedback.FireUpdate();
break; break;
default:
Debug.Console(2, this, "Scaler Default Unhandled Event ID: {0}", args.EventId);
break;
} }
} }
} }

View File

@@ -177,6 +177,10 @@ namespace PepperDash.Essentials.DM
trilist.SetUShortSigAction(joinMap.ScalerOutWallMode.JoinNumber, a => dmRmcScalerWithVideowall.SetWallMode(a)); trilist.SetUShortSigAction(joinMap.ScalerOutWallMode.JoinNumber, a => dmRmcScalerWithVideowall.SetWallMode(a));
trilist.SetUShortSigAction(joinMap.ScalerOutWallModeRaw.JoinNumber, a => dmRmcScalerWithVideowall.SetWallModeRaw(a)); trilist.SetUShortSigAction(joinMap.ScalerOutWallModeRaw.JoinNumber, a => dmRmcScalerWithVideowall.SetWallModeRaw(a));
if (rmc.VideoWallModeFeedback != null)
rmc.VideoWallModeFeedback.LinkInputSig(trilist.UShortInput[joinMap.ScalerOutWallMode.JoinNumber]);
if (rmc.VideoWallModeRawFeedback != null)
rmc.VideoWallModeRawFeedback.LinkInputSig(trilist.UShortInput[joinMap.ScalerOutWallModeRaw.JoinNumber]);
} }