revised testing process cnt >0

This commit is contained in:
Yunhorn 2023-11-07 18:06:50 +08:00
parent 49fc865755
commit b992e78880
1 changed files with 2 additions and 2 deletions

View File

@ -164,10 +164,10 @@ uint8_t STS_SENSOR_MEMS_Get_ID(uint8_t *mems_Dev_ID)
cnt = sts_tof_vl53l0x_DetectSensors();
if (cnt > 0)
if (cnt > 0){
mems_Dev_ID[0] = (Id >>8)&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]);
return cnt;