From 45788a4d6b674000b15d24189fef935c9a41e042 Mon Sep 17 00:00:00 2001 From: Neil Dorin Date: Mon, 13 Jan 2020 21:54:49 -0700 Subject: [PATCH] Adds debug statments with logging for Samsung MDC power on/off events --- .../Essentials Devices Common/Display/SamsungMDCDisplay.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/essentials-framework/Essentials Devices Common/Essentials Devices Common/Display/SamsungMDCDisplay.cs b/essentials-framework/Essentials Devices Common/Essentials Devices Common/Display/SamsungMDCDisplay.cs index 4c7779ab..47d0296f 100644 --- a/essentials-framework/Essentials Devices Common/Essentials Devices Common/Display/SamsungMDCDisplay.cs +++ b/essentials-framework/Essentials Devices Common/Essentials Devices Common/Display/SamsungMDCDisplay.cs @@ -256,6 +256,7 @@ namespace PepperDash.Essentials.Devices.Displays if (newVal != _PowerIsOn) { _PowerIsOn = newVal; + Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Feedback Power State: {0}", _PowerIsOn); PowerIsOnFeedback.FireUpdate(); } } @@ -364,6 +365,8 @@ namespace PepperDash.Essentials.Devices.Displays /// public override void PowerOn() { + Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Powering On Display"); + IsPoweringOnIgnorePowerFb = true; //Send(PowerOnCmd); SendBytes(new byte[] { 0xAA, 0x11, 0x00, 0x01, 0x01, 0x00 }); @@ -387,6 +390,8 @@ namespace PepperDash.Essentials.Devices.Displays /// public override void PowerOff() { + Debug.Console(1, this, Debug.ErrorLogLevel.Notice, "Powering Off Display"); + IsPoweringOnIgnorePowerFb = false; // If a display has unreliable-power off feedback, just override this and // remove this check.