mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
feat: updated ExecuteSwitch to turn the display power on if _PowerIsOn is false
This commit is contained in:
@@ -112,6 +112,11 @@ namespace PepperDash.Essentials.Core
|
|||||||
public override void ExecuteSwitch(object selector)
|
public override void ExecuteSwitch(object selector)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "ExecuteSwitch: {0}", selector);
|
Debug.Console(2, this, "ExecuteSwitch: {0}", selector);
|
||||||
|
|
||||||
|
if (!_PowerIsOn)
|
||||||
|
{
|
||||||
|
PowerOn();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user