mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
RangeFinder: fixed a warning
This commit is contained in:
parent
da5a5ea368
commit
5df4796b9a
@ -158,7 +158,7 @@ float AP_RangeFinder_analog::distance_cm(void)
|
||||
if (dist_m < 0) {
|
||||
dist_m = 0;
|
||||
}
|
||||
return dist_m * 100.0;
|
||||
return dist_m * 100.0f;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user