Merge branch 'main' into release/1.6.0

This commit is contained in:
Andrew Welker
2020-07-30 09:49:34 -07:00
committed by GitHub

View File

@@ -165,29 +165,34 @@ namespace PepperDash.Essentials.Core.Fusion
{ {
// Exists. Read GUIDs // Exists. Read GUIDs
ReadGuidFile(guidFilePath); ReadGuidFile(guidFilePath);
}
if (Room.RoomOccupancy != null)
{
if (Room.OccupancyStatusProviderIsRemote)
SetUpRemoteOccupancy();
else
{
SetUpLocalOccupancy();
}
} }
CreateSymbolAndBasicSigs(IpId);
SetUpSources();
SetUpCommunitcationMonitors();
SetUpDisplay();
SetUpError();
ExecuteCustomSteps();
if (Room.RoomOccupancy != null) AddPostActivationAction(() =>
{ {
if (Room.OccupancyStatusProviderIsRemote) CreateSymbolAndBasicSigs(IpId);
SetUpRemoteOccupancy(); SetUpSources();
else SetUpCommunitcationMonitors();
{ SetUpDisplay();
SetUpLocalOccupancy(); SetUpError();
} ExecuteCustomSteps();
}
FusionRVI.GenerateFileForAllFusionDevices();
GenerateGuidFile(guidFilePath);
});
// Make it so!
FusionRVI.GenerateFileForAllFusionDevices();
GenerateGuidFile(guidFilePath);
} }
catch (Exception e) catch (Exception e)
{ {