CreaTe-M8-BME / CreaTeBME

Python Package for interfacing the bluetooth IMU module for CreaTe M8 BME.
GNU General Public License v3.0
0 stars 2 forks source link

Add option to adjust the amount of connection attempts #21

Closed MaxLiebe closed 3 months ago

MaxLiebe commented 4 months ago

When creating a SensorManager you can now supply an additional optional parameter to adjust the amount of connection attempts that will be made to establish a connection to the IMU(s)

Fixes random NoneType errors and helps with initial connection consistency

MaxLiebe commented 3 months ago

Is this still needed since my previous update should have fixed the common connection error?

It doesn't hurt anything, so why not :shrug:

Also this gives people some time to turn on their sensors if they forgot to do so when running the program, so I'd argue it's a small nice QoL change.

MaxLiebe commented 3 months ago

LGTM, Do not forget to add comments, the code is still readable, but try to add that as well.

Already added at the points where I deemed them necessary or helpful.