Compare commits

..

1 Commits

Author SHA1 Message Date
Paul Wieland dbf0a86cc9
Merge ee1a970647 into 89a5c28a32 2024-12-29 14:22:27 -05:00
1 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace ratgdo {
VL53L4CX_MultiRangingData_t* pDistanceData = &distanceData;
uint8_t dataReady = 0;
int objCount = 0;
int16_t maxDistance = -1;
int16_t maxDistance = 0;
int status;
if (this->distance_sensor_.VL53L4CX_GetMeasurementDataReady(&dataReady) == 0 && dataReady) {
@ -91,7 +91,6 @@ namespace ratgdo {
VL53L4CX_TargetRangeData_t *d = &pDistanceData->RangeData[i];
if (d->RangeStatus == 0) {
maxDistance = std::max(maxDistance, d->RangeMilliMeter);
maxDistance = maxDistance <= 25 ? -1 : maxDistance; // ignore the dust protection sticker
}
}