fix: copilot suggestions from PR review

This commit is contained in:
Andrew Welker
2025-11-03 11:02:39 -06:00
parent 0d083e63c6
commit 9426dff5df
4 changed files with 6 additions and 9 deletions

View File

@@ -477,8 +477,7 @@ namespace PepperDash.Core
/// </summary>
public void SendBytes(byte[] bytes)
{
if (StreamDebugging.TxStreamDebuggingIsEnabled)
Debug.Console(0, this, "Sending {0} bytes: '{1}'", bytes.Length, ComTextHelper.GetEscapedText(bytes));
this.PrintSentBytes(bytes);
if (_client != null)
_client.SendData(bytes, bytes.Length);
}