File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -602,8 +602,11 @@ def configure_device(self):
602
602
raise IOError ("Invalid device firmware" )
603
603
604
604
if self .serial != None and self .port != None :
605
+ self .timeout = 200
605
606
RNS .log ("Serial port " + self .port + " is now open" )
607
+
606
608
if self .bt_manager != None and self .bt_manager .connected :
609
+ self .timeout = 1500
607
610
RNS .log ("Bluetooth connection to RNode now open" )
608
611
609
612
RNS .log ("Configuring RNode interface..." , RNS .LOG_VERBOSE )
@@ -1170,7 +1173,7 @@ def readLoop(self):
1170
1173
if got == 0 :
1171
1174
time_since_last = int (time .time ()* 1000 ) - last_read_ms
1172
1175
if len (data_buffer ) > 0 and time_since_last > self .timeout :
1173
- RNS .log (str (self )+ " serial read timeout" , RNS .LOG_WARNING )
1176
+ RNS .log (str (self )+ " serial read timeout in command " + str ( command ) , RNS .LOG_WARNING )
1174
1177
data_buffer = b""
1175
1178
in_frame = False
1176
1179
command = KISS .CMD_UNKNOWN
Original file line number Diff line number Diff line change @@ -799,7 +799,7 @@ def readLoop(self):
799
799
else :
800
800
time_since_last = int (time .time ()* 1000 ) - last_read_ms
801
801
if len (data_buffer ) > 0 and time_since_last > self .timeout :
802
- RNS .log (str (self )+ " serial read timeout" , RNS .LOG_WARNING )
802
+ RNS .log (str (self )+ " serial read timeout in command " + str ( command ) , RNS .LOG_WARNING )
803
803
data_buffer = b""
804
804
in_frame = False
805
805
command = KISS .CMD_UNKNOWN
You can’t perform that action at this time.
0 commit comments