VernierST / godirect-py

A Python module for reading from Vernier Go Direct® Sensors using USB or BLE.
GNU General Public License v3.0
8 stars 9 forks source link

Fixes some cases where the device name does not exist #28

Closed stocktonkincade closed 2 years ago

stocktonkincade commented 2 years ago

Tom Smith was setting up a bunch of Windows workshop computers and was getting consistent crashes during the ble scan (using bleak). I am not sure why it was only happening on his hardware, but it could be related to memory management. In any case, the fix is to simply test that the name exists before trying to test the 0-3 characters.

We tested this on his machine and also published the 1.1.3 version already. 🥇