I’m trying to use a vl53lxx via i2c, a kind of distance sensor on Firmwarev1.8.0 and using nsh to debug.
vl53lxx start in the nsh interface to start vl53lxx.cpp, and then enter
vl53lxx test for a test. I can see the report.distance data printed, and the data is basically correct. But when I put printing infomation in collect function in vl53lxx.cpp, the report.distance data is 0.
nsh> vl53lxx start
nsh> vl53lxx test
I am a kind of newbie programmer so any tips would be appreciated.