mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
fix: use new interface for parentDev
The GetDmRmcController & GetDmTxController methods were previously ignoring the `DmBladeChassisController` type. This was causing transmitters connected to a DM blade chassis to not be built,
This commit is contained in:
parent
6ddbdd90c7
commit
0df315426b
2 changed files with 5 additions and 4 deletions
|
|
@ -436,9 +436,9 @@ namespace PepperDash.Essentials.DM
|
|||
}
|
||||
return rx;
|
||||
}
|
||||
else if (parentDev is DmChassisController)
|
||||
else if (parentDev is IDmSwitchWithEndpointOnlineFeedback)
|
||||
{
|
||||
var controller = parentDev as DmChassisController;
|
||||
var controller = parentDev as IDmSwitchWithEndpointOnlineFeedback;
|
||||
var chassis = controller.Chassis;
|
||||
var num = props.ParentOutputNumber;
|
||||
Debug.Console(1, "Creating DM Chassis device '{0}'. Output number '{1}'.", key, num);
|
||||
|
|
|
|||
|
|
@ -127,10 +127,10 @@ namespace PepperDash.Essentials.DM
|
|||
BasicDmTxControllerBase tx;
|
||||
bool useChassisForOfflineFeedback = false;
|
||||
|
||||
if (parentDev is DmChassisController)
|
||||
if (parentDev is IDmSwitchWithEndpointOnlineFeedback)
|
||||
{
|
||||
// Get the Crestron chassis and link stuff up
|
||||
var switchDev = (parentDev as DmChassisController);
|
||||
var switchDev = (parentDev as IDmSwitchWithEndpointOnlineFeedback);
|
||||
var chassis = switchDev.Chassis;
|
||||
|
||||
//Check that the input is within range of this chassis' possible inputs
|
||||
|
|
@ -179,6 +179,7 @@ namespace PepperDash.Essentials.DM
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if (parentDev is DmpsRoutingController)
|
||||
{
|
||||
// Get the DMPS chassis and link stuff up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue