Auto-set sensible interface rate defaults

This commit is contained in:
Mark Qvist 2022-04-17 19:35:31 +02:00
parent dd55899775
commit 124ec006b4
5 changed files with 44 additions and 0 deletions

View file

@ -51,6 +51,7 @@ class KISS():
class KISSInterface(Interface):
MAX_CHUNK = 32768
BITRATE_GUESS = 1200
owner = None
port = None
@ -89,6 +90,7 @@ class KISSInterface(Interface):
self.beacon_i = beacon_interval
self.beacon_d = beacon_data.encode("utf-8")
self.first_tx = None
self.bitrate = KISSInterface.BITRATE_GUESS
self.packet_queue = []
self.flow_control = flow_control