mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 13:15:03 +00:00
Added code to ignore power off state on general status messages when input is <10
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user