mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-11 10:45:00 +00:00
fix(wip): DmRmc4kzScalerC VideoWallModeFb not working
- reverted PepperDashCode ref for Essentials_DM to unversioned and latest release - fixed Scaler_OutputChange function params - added instantiation of VideoWallModeRawFeedback - feedback event trigger causing null ref exception TODO: -[] trace nullref exception cause -[] Link Fb to Api
This commit is contained in:
@@ -89,6 +89,9 @@ namespace PepperDash.Essentials.DM
|
||||
|
||||
VideoOutputResolutionFeedback = new StringFeedback(() => _rmc.HdmiOutput.GetVideoResolutionString());
|
||||
|
||||
VideoWallModeRawFeedback = new IntFeedback("ScalerVideoWallModeRaw",
|
||||
() => (int)_rmc.Scaler.WallModeRawFeedback.UShortValue);
|
||||
|
||||
InputPorts = new RoutingPortCollection<RoutingInputPort> { DmIn, HdmiIn };
|
||||
OutputPorts = new RoutingPortCollection<RoutingOutputPort> { HdmiOut };
|
||||
|
||||
@@ -256,12 +259,12 @@ namespace PepperDash.Essentials.DM
|
||||
|
||||
#region IhasWallMode Members
|
||||
|
||||
public void SetWallMode(ushort walLMode)
|
||||
public void SetWallMode(ushort wallMode)
|
||||
{
|
||||
EndpointScalerOutput.eWall wallvalue;
|
||||
EndpointScalerOutput.eWall wallValue;
|
||||
|
||||
if (WallModes.TryGetValue(walLMode, out wallvalue))
|
||||
_rmc.Scaler.WallMode = wallvalue;
|
||||
if (WallModes.TryGetValue(wallMode, out wallValue))
|
||||
_rmc.Scaler.WallMode = wallValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -271,7 +274,16 @@ namespace PepperDash.Essentials.DM
|
||||
_rmc.Scaler.WallModeRaw.UShortValue = wallMode;
|
||||
}
|
||||
|
||||
void Scaler_OutputChange(object scaler ScalerOutputEventArgs args)
|
||||
void Scaler_OutputChange(EndpointScalerOutput scalerOutput, ScalerOutputEventArgs args)
|
||||
{
|
||||
switch (args.EventId)
|
||||
{
|
||||
case ScalerOutputEventIds.WallModeFeedbackEventId:
|
||||
VideoWallModeRawFeedback.FireUpdate();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user