File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,12 @@ def check(self):
189
189
self .backlight .set_bt_led (None )
190
190
for c in self .ble .connections :
191
191
try :
192
- if c .connection_interval > 11.25 :
193
- c .connection_interval = 11.25
194
- except _bleio .BluetoothError :
195
- self .log ("failed to set ble connection interval" )
196
- self .log ('ble connection interval {}' .format (c .connection_interval ))
192
+ # 11.25 ms is the min connection interval for most systems
193
+ c .connection_interval = 11.25
194
+ except Exception :
195
+ print ("Failed to set ble connection interval" )
196
+ # Avoid getting connection_interval, as it may block forever
197
+ # self.log('ble connection interval {}'.format(c.connection_interval))
197
198
elif time .time () > self .adv_timeout :
198
199
self .stop_advertising ()
199
200
You can’t perform that action at this time.
0 commit comments