mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-12-16 17:04:25 -05:00
Updated RNode TCP read timeouts
This commit is contained in:
parent
fcdcf1a2a8
commit
237c3160eb
2 changed files with 4 additions and 4 deletions
|
|
@ -393,7 +393,7 @@ class RNodeInterface(Interface):
|
|||
time.sleep(1)
|
||||
|
||||
if self.use_tcp:
|
||||
self.timeout = 1000
|
||||
self.timeout = 1500
|
||||
RNS.log(f"Opening TCP connection for {self}...")
|
||||
if self.tcp != None and self.tcp.running == False:
|
||||
self.tcp.close()
|
||||
|
|
@ -1111,7 +1111,7 @@ class RNodeInterface(Interface):
|
|||
else:
|
||||
time_since_last = int(time.time()*1000) - last_read_ms
|
||||
if len(data_buffer) > 0 and time_since_last > self.timeout:
|
||||
RNS.log(str(self)+" serial read timeout in command "+str(command), RNS.LOG_WARNING)
|
||||
RNS.log(f"{self} device read timeout in command {command} after {RNS.prettytime(self.timeout/1000.0)}", RNS.LOG_WARNING)
|
||||
data_buffer = b""
|
||||
in_frame = False
|
||||
command = KISS.CMD_UNKNOWN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue