mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-20 13:59:00 +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_END := byte(0xdc)
|
||||||
ESC_ESC := byte(0xdd)
|
ESC_ESC := byte(0xdd)
|
||||||
|
|
||||||
var encodedBytes = []byte{}
|
var encodedBytes = []byte{END}
|
||||||
|
|
||||||
for _, byteToEncode := range bytes {
|
for _, byteToEncode := range bytes {
|
||||||
if byteToEncode == END {
|
if byteToEncode == END {
|
||||||
|
|||||||
Reference in New Issue
Block a user