SLIP encoding should be double END-ed

This commit is contained in:
2025-05-19 09:22:39 -05:00
committed by GitHub
parent 2f4b90fc16
commit d03f032e72
+1 -1
View File
@@ -117,7 +117,7 @@ func slipEncode(bytes []byte) []byte {
ESC_END := byte(0xdc)
ESC_ESC := byte(0xdd)
var encodedBytes = []byte{}
var encodedBytes = []byte{END}
for _, byteToEncode := range bytes {
if byteToEncode == END {