From bd005da3585ec205c069cc0c6165f3c4bb0855bc Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 24 Dec 2025 19:13:33 -0600 Subject: [PATCH] fix incorrect slip frame encoding --- internal/framer/slip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/framer/slip.go b/internal/framer/slip.go index 40551f9..dffcc7f 100644 --- a/internal/framer/slip.go +++ b/internal/framer/slip.go @@ -59,9 +59,9 @@ func (sf *SlipFramer) Encode(data []byte) []byte { for _, byteToEncode := range data { switch byteToEncode { case END: - encodedBytes = append(encodedBytes, ESC_END) + encodedBytes = append(encodedBytes, ESC, ESC_END) case ESC: - encodedBytes = append(encodedBytes, ESC_ESC) + encodedBytes = append(encodedBytes, ESC, ESC_ESC) default: encodedBytes = append(encodedBytes, byteToEncode) }