if there is no sensor connected the initialisation gets stuck in the while-loop inside of VL53L1X_ERROR VL53L1X::VL53L1X_SensorInit();
proposal is to add a timeout, so that the init() function returns to the calling program with a defined error code after a second or so
if there is no sensor connected the initialisation gets stuck in the while-loop inside of VL53L1X_ERROR VL53L1X::VL53L1X_SensorInit(); proposal is to add a timeout, so that the init() function returns to the calling program with a defined error code after a second or so