Sanderi44 / Lidar-Lite

C++ and python libraries for getting data from the Lidar-Lite sensor
40 stars 24 forks source link

Catch errors during distance reading instead of exiting out of program #12

Open mark8769 opened 2 years ago

mark8769 commented 2 years ago

While using the library there would be at times when my program would exit while it was taking measurements. I am only using one i2c device, so nothing should be interfering with it. I found it more convenient to get a -1 as a marker that it was a bad measurement.