mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Added code to ignore power off state on general status messages when input is <10
This commit is contained in:
parent
7801a980b5
commit
2a1c9dbaf6
3 changed files with 2 additions and 2 deletions
|
|
@ -244,12 +244,12 @@ namespace PepperDash.Essentials.Devices.Displays
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates power status from general updates where source is included.
|
/// Updates power status from general updates where source is included.
|
||||||
/// Compensates for errant standby / power off hiccups by ignoring
|
/// Compensates for errant standby / power off hiccups by ignoring
|
||||||
/// power off states with input 03
|
/// power off states with input < 0x10
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void UpdatePowerFB(byte powerByte, byte inputByte)
|
void UpdatePowerFB(byte powerByte, byte inputByte)
|
||||||
{
|
{
|
||||||
// This should reject errant power feedbacks when switching away from input on standby.
|
// This should reject errant power feedbacks when switching away from input on standby.
|
||||||
if (powerByte == 0x00 && inputByte == 0x03)
|
if (powerByte == 0x00 && inputByte < 0x10)
|
||||||
return;
|
return;
|
||||||
UpdatePowerFB(powerByte);
|
UpdatePowerFB(powerByte);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue