revised testing process cnt >0
This commit is contained in:
parent
49fc865755
commit
b992e78880
|
@ -164,10 +164,10 @@ uint8_t STS_SENSOR_MEMS_Get_ID(uint8_t *mems_Dev_ID)
|
||||||
|
|
||||||
cnt = sts_tof_vl53l0x_DetectSensors();
|
cnt = sts_tof_vl53l0x_DetectSensors();
|
||||||
|
|
||||||
if (cnt > 0)
|
if (cnt > 0){
|
||||||
mems_Dev_ID[0] = (Id >>8)&0xff;
|
mems_Dev_ID[0] = (Id >>8)&0xff;
|
||||||
mems_Dev_ID[1] = (Id & 0xff);
|
mems_Dev_ID[1] = (Id & 0xff);
|
||||||
|
}
|
||||||
|
|
||||||
APP_LOG(TS_OFF, VLEVEL_H,"MEMS count=%d MEMS ID=%02x %02x \r\n", cnt, mems_Dev_ID[0],mems_Dev_ID[1]);
|
APP_LOG(TS_OFF, VLEVEL_H,"MEMS count=%d MEMS ID=%02x %02x \r\n", cnt, mems_Dev_ID[0],mems_Dev_ID[1]);
|
||||||
return cnt;
|
return cnt;
|
||||||
|
|
Loading…
Reference in New Issue