fix i2c address been setup issue
This commit is contained in:
parent
7e90cb476c
commit
7e240eb89c
|
@ -79,7 +79,7 @@ int LeakyFactorFix8 = (int)( 0.6 *256); // 0.6 for ranging, 0.0 for gesture d
|
||||||
/** How many device detect set by @a DetectSensors()*/
|
/** How many device detect set by @a DetectSensors()*/
|
||||||
int nDevPresent=0;
|
int nDevPresent=0;
|
||||||
/** bit is index in VL53L0XDevs that is not necessary the dev id of the BSP */
|
/** bit is index in VL53L0XDevs that is not necessary the dev id of the BSP */
|
||||||
int nDevMask;
|
int nDevMask=0;
|
||||||
|
|
||||||
int nSensorPresent;
|
int nSensorPresent;
|
||||||
|
|
||||||
|
@ -325,10 +325,10 @@ void STS_TOF_VL53L0X_Range_Process(void)
|
||||||
int status=0, i;
|
int status=0, i;
|
||||||
RangingConfig_e RangingConfig = HIGH_ACCURACY; //HIGH_ACCURACY; //LONG_RANGE;
|
RangingConfig_e RangingConfig = HIGH_ACCURACY; //HIGH_ACCURACY; //LONG_RANGE;
|
||||||
XWL55_WLE5_53L0X_Init();
|
XWL55_WLE5_53L0X_Init();
|
||||||
|
if ((nDevMask ==0) && (nSensorPresent ==0)){
|
||||||
nSensorPresent = sts_tof_vl53l0x_DetectSensors(); // confirm sensor online
|
nSensorPresent = sts_tof_vl53l0x_DetectSensors(); // confirm sensor online
|
||||||
APP_LOG(TS_OFF, VLEVEL_M, "sensor online \r\n");
|
APP_LOG(TS_OFF, VLEVEL_M, "sensor online \r\n");
|
||||||
nDevMask = 0;
|
}
|
||||||
|
|
||||||
if (nSensorPresent > 0)
|
if (nSensorPresent > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue