krontech / pychronos

Python bindings for the Chronos High Speed Camera
GNU General Public License v3.0
3 stars 2 forks source link

lux1310: ADC offset calibration error leaves sensor in test mode. #58

Open oskirby opened 4 years ago

oskirby commented 4 years ago

When an ADC offset calibration error occurs (not that it should ever occur), raising an exception jumps out of the startAnalogCal function, leaving the sensor still configured in analog test mode. We should still clean up after ourselves, even though such an error shouldn't have occured on a healthy image sensor.