mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
fix condition for determining if type is IBridgeAdvanced
This commit is contained in:
@@ -114,11 +114,13 @@ namespace PepperDash.Essentials.Core.Bridges
|
|||||||
//{
|
//{
|
||||||
// Debug.Console(2, this, "'{0}' is IBridge", device.Key);
|
// Debug.Console(2, this, "'{0}' is IBridge", device.Key);
|
||||||
//}
|
//}
|
||||||
if (device.GetType().GetCType().IsAssignableFrom(typeof (IBridgeAdvanced)))
|
if (!typeof (IBridgeAdvanced).IsAssignableFrom(device.GetType().GetCType()))
|
||||||
{
|
{
|
||||||
var bridge = device as IBridgeAdvanced;
|
continue;
|
||||||
if (bridge != null) bridge.LinkToApi(Eisc, d.JoinStart, d.JoinMapKey, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var bridge = device as IBridgeAdvanced;
|
||||||
|
if (bridge != null) bridge.LinkToApi(Eisc, d.JoinStart, d.JoinMapKey, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user