GCS_Common: use int8_t for rangefinder quality_pct

This commit is contained in:
Willian Galvani 2023-08-18 12:30:13 -03:00 committed by Peter Barker
parent 7953cd9a89
commit 107474b792
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ void GCS_MAVLINK::send_distance_sensor(const AP_RangeFinder_Backend *sensor, con
return;
}
uint8_t quality_pct = 0;
int8_t quality_pct;
uint8_t quality;
if (sensor->get_signal_quality_pct(quality_pct)) {
// mavlink defines this field as 0 is unknown, 1 is invalid, 100 is perfect