Bug fixes to device usage string syntax. Tested and working with Fusion Reporting.

This commit is contained in:
Neil Dorin
2017-08-25 18:05:19 -06:00
parent 0b5681842e
commit e344e05857
4 changed files with 17 additions and 3 deletions

View File

@@ -53,8 +53,21 @@ namespace PepperDash.Essentials.Core
IsWarmingUpFeedback = new BoolFeedback(CommonBoolCue.IsWarmingUp, IsWarmingUpFeedbackFunc);
InputPorts = new RoutingPortCollection<RoutingInputPort>();
PowerIsOnFeedback.OutputChange += new EventHandler<EventArgs>(PowerIsOnFeedback_OutputChange);
}
void PowerIsOnFeedback_OutputChange(object sender, EventArgs e)
{
if (UsageTracker != null)
{
if (PowerIsOnFeedback.BoolValue)
UsageTracker.StartDeviceUsage();
else
UsageTracker.EndDeviceUsage();
}
}
public abstract void PowerOn();
public abstract void PowerOff();
public abstract void PowerToggle();