updates to get things back working

This commit is contained in:
Andrew Welker
2020-11-19 08:00:17 -07:00
parent 97995df962
commit 7b3ef897fb
10 changed files with 22 additions and 22 deletions

View File

@@ -241,7 +241,7 @@ namespace PepperDash.Essentials.Core
ShutdownType = eShutdownType.None;
}
protected void InitializeDisplay(DisplayBase display)
protected void InitializeDisplay(TwoWayDisplayBase display)
{
// Link power, warming, cooling to display
display.PowerIsOnFeedback.OutputChange += PowerIsOnFeedbackOnOutputChange;
@@ -615,9 +615,9 @@ namespace PepperDash.Essentials.Core
if (route.SourceKey.Equals("$off", StringComparison.OrdinalIgnoreCase))
{
dest.ReleaseRoute();
if (dest is IPower)
if (dest is IHasPowerControl)
{
(dest as IPower).PowerOff();
(dest as IHasPowerControl).PowerOff();
}
}
else