fix i2c address been setup issue

This commit is contained in:
Yunhorn 2023-07-07 11:51:22 +08:00
parent 7e90cb476c
commit 7e240eb89c
1 changed files with 5 additions and 5 deletions

View File

@ -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()*/
int nDevPresent=0;
/** bit is index in VL53L0XDevs that is not necessary the dev id of the BSP */
int nDevMask;
int nDevMask=0;
int nSensorPresent;
@ -325,10 +325,10 @@ void STS_TOF_VL53L0X_Range_Process(void)
int status=0, i;
RangingConfig_e RangingConfig = HIGH_ACCURACY; //HIGH_ACCURACY; //LONG_RANGE;
XWL55_WLE5_53L0X_Init();
nSensorPresent = sts_tof_vl53l0x_DetectSensors(); // confirm sensor online
APP_LOG(TS_OFF, VLEVEL_M, "sensor online \r\n");
nDevMask = 0;
if ((nDevMask ==0) && (nSensorPresent ==0)){
nSensorPresent = sts_tof_vl53l0x_DetectSensors(); // confirm sensor online
APP_LOG(TS_OFF, VLEVEL_M, "sensor online \r\n");
}
if (nSensorPresent > 0)
{