From 6a2c585632d6b9e57c3fdae12b7d0b07993a3124 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 May 2015 22:51:19 +1000 Subject: [PATCH] AP_InertialSensor: fixed build warnings --- libraries/AP_InertialSensor/AP_InertialSensor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_InertialSensor/AP_InertialSensor.cpp b/libraries/AP_InertialSensor/AP_InertialSensor.cpp index 3e3420f30d..071a6a152d 100644 --- a/libraries/AP_InertialSensor/AP_InertialSensor.cpp +++ b/libraries/AP_InertialSensor/AP_InertialSensor.cpp @@ -443,8 +443,8 @@ bool AP_InertialSensor::_calculate_trim(const Vector3f &accel_sample, float& tri return false; } hal.console->printf_P(PSTR("Trim OK: roll=%.2f pitch=%.2f\n"), - degrees(trim_roll), - degrees(trim_pitch)); + (double)degrees(trim_roll), + (double)degrees(trim_pitch)); return true; }