Skip to content

Commit

Permalink
fix: set power value after warming/cooling is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welker committed Jun 25, 2024
1 parent 58b7adb commit d5b1a73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SonyBraviaDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,15 @@ public bool PowerIsOn
return;
}

if (_powerIsOn)
if (value)
{
IsWarming = true;

WarmupTimer = new CTimer(o =>
{
_powerIsOn = value;
IsWarming = false;
PowerIsOnFeedback.FireUpdate();
}, _warmingtimeMs);
}
else
Expand All @@ -312,6 +313,7 @@ public bool PowerIsOn
{
_powerIsOn = value;
IsCooling = false;
PowerIsOnFeedback.FireUpdate();
}, _coolingTimeMs);
}
}
Expand Down

0 comments on commit d5b1a73

Please sign in to comment.