This commit is contained in:
Tom Hensel 2024-11-21 13:51:19 +01:00 committed by GitHub
commit e4ab81d95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -338,7 +338,14 @@ class KISSInterface(Interface):
if time.time() > self.first_tx + self.beacon_i:
RNS.log("Interface "+str(self)+" is transmitting beacon data: "+str(self.beacon_d.decode("utf-8")), RNS.LOG_DEBUG)
self.first_tx = None
self.processOutgoing(self.beacon_d)
# Using standard HDLC flag or sync bytes
frame = bytearray([0xAA, 0xAA]) # Standard sync pattern
frame.extend(self.beacon_d)
while len(frame) < 15:
frame.append(0x00)
self.processOutgoing(bytes(frame))
except Exception as e:
self.online = False