Updates CameraControllerJoinMap to use new constructor for base class

This commit is contained in:
Neil Dorin
2020-04-05 09:07:05 -06:00
parent 42fbd813a2
commit c8f095f0a3
3 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ namespace PepperDash.Essentials.Bridges
public static void LinkToApi(this PepperDash.Essentials.Devices.Common.Cameras.CameraBase cameraDevice, BasicTriList trilist, uint joinStart, string joinMapKey, EiscApi bridge)
{
CameraControllerJoinMap joinMap = new CameraControllerJoinMap(joinStart);
// Adds the join map to the bridge
bridge.AddJoinMap(cameraDevice.Key, joinMap);

View File

@@ -57,7 +57,7 @@ namespace PepperDash.Essentials.Bridges
public JoinDataComplete SupportsPresets = new JoinDataComplete(new JoinData() { JoinNumber = 57, JoinSpan = 1 }, new JoinMetadata() { Label = "Supports Presets", JoinCapabilities = eJoinCapabilities.FromSIMPL, JoinType = eJoinType.Digital });
public CameraControllerJoinMap(uint joinStart)
:base(joinStart)
: base(joinStart, typeof(CameraControllerJoinMap))
{
}
}

View File

@@ -177,7 +177,7 @@ namespace PepperDash.Essentials.Core
// return join;
// });
//type = this.GetType(); <- this wasn'memberInfo working because 'this' was always the base class, never the derived class
//type = this.GetType(); <- this wasn't working because 'this' was always the base class, never the derived class
var fields =
type.GetCType()
.GetFields(BindingFlags.Public | BindingFlags.Instance)
@@ -454,7 +454,7 @@ namespace PepperDash.Essentials.Core
public JoinNameAttribute(string name)
{
Debug.Console(0, "Setting Attribute Name: {0}", name);
Debug.Console(2, "Setting Attribute Name: {0}", name);
_Name = name;
}