mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 04:34:56 +00:00
remove unnecessary debug statements
This commit is contained in:
@@ -149,7 +149,7 @@ namespace PepperDash.Essentials.Devices.Displays
|
|||||||
public override bool CustomActivate()
|
public override bool CustomActivate()
|
||||||
{
|
{
|
||||||
Communication.Connect();
|
Communication.Connect();
|
||||||
CommunicationMonitor.StatusChange += (o, a) => { Debug.Console(2, this, "Communication monitor state: {0}", CommunicationMonitor.Status); };
|
CommunicationMonitor.StatusChange += (o, a) => Debug.Console(2, this, "Communication monitor state: {0}", CommunicationMonitor.Status);
|
||||||
CommunicationMonitor.Start();
|
CommunicationMonitor.Start();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -188,9 +188,6 @@ namespace PepperDash.Essentials.Devices.Displays
|
|||||||
IncomingBuffer.CopyTo(newBytes, 0);
|
IncomingBuffer.CopyTo(newBytes, 0);
|
||||||
e.Bytes.CopyTo(newBytes, IncomingBuffer.Length);
|
e.Bytes.CopyTo(newBytes, IncomingBuffer.Length);
|
||||||
|
|
||||||
if (Debug.Level == 2) // This check is here to prevent following string format from building unnecessarily on level 0 or 1
|
|
||||||
Debug.Console(2, this, "Received:{0}", ComTextHelper.GetEscapedText(newBytes));
|
|
||||||
|
|
||||||
// Need to find AA FF and have
|
// Need to find AA FF and have
|
||||||
for (int i = 0; i < newBytes.Length; i++)
|
for (int i = 0; i < newBytes.Length; i++)
|
||||||
{
|
{
|
||||||
@@ -364,8 +361,6 @@ namespace PepperDash.Essentials.Devices.Displays
|
|||||||
}
|
}
|
||||||
checksum = checksum & 0x000000FF; // mask off MSBs
|
checksum = checksum & 0x000000FF; // mask off MSBs
|
||||||
b[b.Length - 1] = (byte)checksum;
|
b[b.Length - 1] = (byte)checksum;
|
||||||
if(Debug.Level == 2) // This check is here to prevent following string format from building unnecessarily on level 0 or 1
|
|
||||||
Debug.Console(2, this, "Sending:{0}", ComTextHelper.GetEscapedText(b));
|
|
||||||
|
|
||||||
if (b[1] == 0x12)
|
if (b[1] == 0x12)
|
||||||
LastCommandSentWasVolume = true;
|
LastCommandSentWasVolume = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user