mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix condition for determining if type is IBridgeAdvanced
This commit is contained in:
parent
44fcbf98f2
commit
90c4435253
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue