mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
feat: updated ExecuteSwitch to turn the display power on if _PowerIsOn is false
This commit is contained in:
parent
b23b7cb813
commit
832102f4bb
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue