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

Implement atexit to disconnect sensors #9

Closed JonaMata closed 1 year ago

JonaMata commented 1 year ago

Partially Fixes #8

ttsmit commented 1 year ago

I do not seem to get reliable results on Windows yet. Often I am able to restart the examples/PrintSensorDemo.py after interrupting it, but sometimes not. Then it shows the can not find sensor error.

ttsmit commented 1 year ago

I do seem to get reliable results on Linux, but empirical proof only. Even when interrupting the destructor (doing Ctrl+C twice).