Fix: Add trailing frame byte to COBS encoder

This commit is contained in:
wes
2025-12-29 09:55:46 -05:00
parent 1ce475f7dc
commit eda93dc7fe
+1
View File
@@ -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)