mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-25 07:00:17 +00:00
Merge 3bbd43cc1b
into e2efc61208
This commit is contained in:
commit
6c26e8b1b1
@ -319,7 +319,14 @@ class KISSInterface(Interface):
|
|||||||
if time.time() > self.first_tx + self.beacon_i:
|
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)
|
RNS.log("Interface "+str(self)+" is transmitting beacon data: "+str(self.beacon_d.decode("utf-8")), RNS.LOG_DEBUG)
|
||||||
self.first_tx = None
|
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:
|
except Exception as e:
|
||||||
self.online = False
|
self.online = False
|
||||||
|
Loading…
Reference in New Issue
Block a user