treat as changed if range not valid
This commit is contained in:
parent
0ea531bd36
commit
8109f46153
|
@ -69,9 +69,9 @@ void Sensor_VL53L1X::sensorloop()
|
||||||
*/
|
*/
|
||||||
//&& VL53L1X::rangeStatusToString(vl53l1x->ranging_data.range_status)=="range valid"
|
//&& VL53L1X::rangeStatusToString(vl53l1x->ranging_data.range_status)=="range valid"
|
||||||
if (abs((int)d.lastsentvalue-d.value)>=d.minchange ){ //int abs
|
if (abs((int)d.lastsentvalue-d.value)>=d.minchange ){ //int abs
|
||||||
if (vl53l1x->ranging_data.range_status==0) { // "0 is range valid"
|
//if (vl53l1x->ranging_data.range_status==0) { // "0 is range valid"
|
||||||
_changed=true;
|
_changed=true;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
/*if (lastsentvalue_vl53l1x_status!=vl53l1x->ranging_data.range_status) { //sensor status changed
|
/*if (lastsentvalue_vl53l1x_status!=vl53l1x->ranging_data.range_status) { //sensor status changed
|
||||||
_changed=true;
|
_changed=true;
|
||||||
|
|
Loading…
Reference in New Issue