Cleanup in interfaces

This commit is contained in:
Mark Qvist 2020-05-06 14:34:19 +02:00
parent 67fc7685ec
commit 8c506b0c78
3 changed files with 8 additions and 13 deletions

View file

@ -25,8 +25,8 @@ class KISS():
@staticmethod
def escape(data):
data = data.replace(bytes([0xdb]), bytes([0xdb])+bytes([0xdd]))
data = data.replace(bytes([0xc0]), bytes([0xdb])+bytes([0xdc]))
data = data.replace(bytes([0xdb]), bytes([0xdb, 0xdd]))
data = data.replace(bytes([0xc0]), bytes([0xdb, 0xdc]))
return data
class AX25():