mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
HAL_Empty: avoid some float conversion warnings
This commit is contained in:
parent
59de5a8465
commit
e137bf26ef
@ -11,11 +11,11 @@ float EmptyAnalogSource::read_average() {
|
||||
}
|
||||
|
||||
float EmptyAnalogSource::voltage_average() {
|
||||
return 5.0 * _v / 1024.0;
|
||||
return 5.0f * _v / 1024.0f;
|
||||
}
|
||||
|
||||
float EmptyAnalogSource::voltage_latest() {
|
||||
return 5.0 * _v / 1024.0;
|
||||
return 5.0f * _v / 1024.0f;
|
||||
}
|
||||
|
||||
float EmptyAnalogSource::read_latest() {
|
||||
|
Loading…
Reference in New Issue
Block a user