On the vl5VL53L5cx, the vl3l5cx_check_data_ready function,
the expected results on the temp_buffer are:
if((p_dev->temp_buffer[0] != p_dev->streamcount)
&& (p_dev->temp_buffer[0] != (uint8_t)255)
&& (p_dev->temp_buffer[1] == (uint8_t)0x5)
&& ((p_dev->temp_buffer[2] & (uint8_t)0x5) == (uint8_t)0x5)
&& ((p_dev->temp_buffer[3] & (uint8_t)0x10) ==(uint8_t)0x10)
I got:
temp_buffer[0]=255
temp_buffer[1]=0
ttemp_buffer[2]=2
temp_buffer[3]=1
streamcountr=0
after successfully calling the vl53l5cx_init() function, so check_data_ready is never true. Is there any other function that must be called before running the vl3l5cx_check_data_ready? At which point in the initialization is the correct data to be read on the temp_buffer set?
