From e137bf26ef8ad13ce95bb65014eefd59476f8036 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Jul 2014 20:27:13 +1000 Subject: [PATCH] HAL_Empty: avoid some float conversion warnings --- libraries/AP_HAL_Empty/AnalogIn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_Empty/AnalogIn.cpp b/libraries/AP_HAL_Empty/AnalogIn.cpp index 6810f7bfc5..f9f16aaf75 100644 --- a/libraries/AP_HAL_Empty/AnalogIn.cpp +++ b/libraries/AP_HAL_Empty/AnalogIn.cpp @@ -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() {