mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-26 19:01:53 -04:00
Killed a couple of allocs, canonical HDLC frame method
This commit is contained in:
parent
ea98db4f53
commit
eb8414bee9
3 changed files with 12 additions and 3 deletions
|
|
@ -1031,7 +1031,7 @@ class BackboneClientInterface(Interface):
|
|||
def process_outgoing(self, data):
|
||||
if self.online and not self.detached:
|
||||
try:
|
||||
frame = bytes([HDLC.FLAG])+HDLC.escape(data)+bytes([HDLC.FLAG])
|
||||
frame = HDLC.frame(data)
|
||||
if self.tx_stalled or not self.transmit_buffer.append(frame, self.tx_hwm):
|
||||
self.tx_drops += 1
|
||||
self.tx_dropped_bytes += len(frame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue