Compare commits

...

2 Commits

Author SHA1 Message Date
Neil Dorin
3d15227aa2 makes RunRouteAction virtual method 2023-10-19 14:12:30 -06:00
Neil Dorin
23a37ebb37 #1145 moves LoadTieLines() to after device activation sequence 2023-10-18 15:28:22 -06:00
2 changed files with 5 additions and 4 deletions

View File

@@ -337,19 +337,20 @@ namespace PepperDash.Essentials
void Load()
{
LoadDevices();
LoadTieLines();
LoadRooms();
LoadLogoServer();
DeviceManager.ActivateAll();
LoadTieLines();
var mobileControl = GetMobileControlDevice();
if (mobileControl == null) return;
mobileControl.LinkSystemMonitorToAppServer();
}
}
/// <summary>
/// Reads all devices from config and adds them to DeviceManager

View File

@@ -334,7 +334,7 @@ namespace PepperDash.Essentials
/// route or commands
/// </summary>
/// <param name="name"></param>
public void RunRouteAction(string routeKey, Action successCallback)
public virtual void RunRouteAction(string routeKey, Action successCallback)
{
// Run this on a separate thread
new CTimer(o =>