Added code to ignore power off state on general status messages when input is <10

This commit is contained in:
Heath Volmer
2017-08-24 21:56:57 -06:00
parent 7801a980b5
commit 2a1c9dbaf6
3 changed files with 2 additions and 2 deletions

View File

@@ -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);
} }