Browse Source

HAL_Empty: avoid some float conversion warnings

master
Andrew Tridgell 11 years ago
parent
commit
e137bf26ef
  1. 4
      libraries/AP_HAL_Empty/AnalogIn.cpp

4
libraries/AP_HAL_Empty/AnalogIn.cpp

@ -11,11 +11,11 @@ float EmptyAnalogSource::read_average() { @@ -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…
Cancel
Save