Fix: Add trailing frame byte to COBS encoder
This commit is contained in:
@@ -74,6 +74,7 @@ class CobsEncoder:
|
||||
while i < len(data_with_crc) and data_with_crc[i] == self.frame_byte:
|
||||
i += 1
|
||||
|
||||
output.append(self.frame_byte) # Append end frame
|
||||
return bytes(output)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user