mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-08 09:15:06 +00:00
move EISC registration
This commit is contained in:
@@ -27,8 +27,6 @@ namespace PepperDash.Essentials.Bridges
|
||||
|
||||
Eisc.SigChange += Eisc_SigChange;
|
||||
|
||||
Eisc.Register();
|
||||
|
||||
AddPostActivationAction(() =>
|
||||
{
|
||||
Debug.Console(1, this, "Linking Devices...");
|
||||
@@ -76,7 +74,7 @@ namespace PepperDash.Essentials.Bridges
|
||||
}
|
||||
}
|
||||
Debug.Console(1, this, "Devices Linked.");
|
||||
|
||||
Eisc.Register();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -96,8 +96,6 @@ namespace PepperDash.Essentials.Core.Bridges
|
||||
|
||||
Eisc.SigChange += Eisc_SigChange;
|
||||
|
||||
Eisc.Register();
|
||||
|
||||
AddPostActivationAction( () =>
|
||||
{
|
||||
Debug.Console(1, this, "Linking Devices...");
|
||||
@@ -121,6 +119,8 @@ namespace PepperDash.Essentials.Core.Bridges
|
||||
var bridge = device as IBridgeAdvanced;
|
||||
if (bridge != null) bridge.LinkToApi(Eisc, d.JoinStart, d.JoinMapKey, this);
|
||||
}
|
||||
|
||||
Eisc.Register();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user