VL53L1X reading returns 0 with error code 31
I am getting occasional readings from this sensor of zero(0) reading result with the error code 31. According to the header file this error corresponds to:
#define VL53L1X_WARNING_OFFSET_CAL_MISSING_SAMPLES ((VL53L1X_Error) - 31)
/*!< Thrown if there is less than the requested number of
* valid samples. */
This is not during Calibration offset process, which we do use, but at run time after SetOffset using the stored offset value.
Very confused why I would get this error, occasionally, at run time?
Thanks,
Will
