HAL_Empty: avoid some float conversion warnings

This commit is contained in:
Andrew Tridgell 2014-07-08 20:27:13 +10:00
parent 59de5a8465
commit e137bf26ef

View File

@ -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() {