mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
RNode interface
This commit is contained in:
parent
c03bce5547
commit
c338694a9d
@ -259,7 +259,6 @@ class RNodeInterface(Interface):
|
|||||||
|
|
||||||
def process_queue(self):
|
def process_queue(self):
|
||||||
if len(self.packet_queue) > 0:
|
if len(self.packet_queue) > 0:
|
||||||
sleep(0.5)
|
|
||||||
data = self.packet_queue.pop(0)
|
data = self.packet_queue.pop(0)
|
||||||
self.interface_ready = True
|
self.interface_ready = True
|
||||||
self.processOutgoing(data)
|
self.processOutgoing(data)
|
||||||
@ -394,7 +393,7 @@ class RNodeInterface(Interface):
|
|||||||
else:
|
else:
|
||||||
time_since_last = int(time.time()*1000) - last_read_ms
|
time_since_last = int(time.time()*1000) - last_read_ms
|
||||||
if len(data_buffer) > 0 and time_since_last > self.timeout:
|
if len(data_buffer) > 0 and time_since_last > self.timeout:
|
||||||
RNS.log(str(self)+" serial read timeout", RNS.LOG_EXTREME)
|
RNS.log(str(self)+" serial read timeout", RNS.LOG_DEBUG)
|
||||||
data_buffer = ""
|
data_buffer = ""
|
||||||
in_frame = False
|
in_frame = False
|
||||||
command = KISS.CMD_UNKNOWN
|
command = KISS.CMD_UNKNOWN
|
||||||
|
Loading…
Reference in New Issue
Block a user