minor linting things

This commit is contained in:
Joel Wetzell
2026-05-17 09:50:08 -05:00
parent 4bdfe0b00a
commit ad4aa91e08
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -25,9 +25,10 @@ func (sf *SlipFramer) Decode(data []byte) [][]byte {
}
if escapeNext {
if packetByte == ESC_END {
switch packetByte {
case ESC_END:
sf.buffer = append(sf.buffer, END)
} else if packetByte == ESC_ESC {
case ESC_ESC:
sf.buffer = append(sf.buffer, ESC)
}
escapeNext = false