mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-08 00:23:42 +00:00
SLIP encoding should be double END-ed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user