From ae900849777e27a0cca5030b42fd666df46c068d Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 25 Feb 2016 02:17:00 +0100 Subject: [PATCH] Fix build error --- src/modules/commander/mag_calibration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp index aba8d87369..dbe89a44b3 100644 --- a/src/modules/commander/mag_calibration.cpp +++ b/src/modules/commander/mag_calibration.cpp @@ -528,8 +528,8 @@ calibrate_return mag_calibrate_all(int mavlink_fd, int32_t (&device_ids)[max_mag sphere_y[cur_mag] * sphere_y[cur_mag] + sphere_z[cur_mag] * sphere_z[cur_mag]) > MAG_MAX_OFFSET_LEN) { mavlink_and_console_log_emergency(mavlink_fd, "ERROR: Replace board, fault in mag #%u", cur_mag); - mavlink_and_console_log_emergency(mavlink_fd, "Offsets: %8.4f, %8.4f, %8.4f", sphere_x[cur_mag], - sphere_y[cur_mag], sphere_z[cur_mag]); + mavlink_and_console_log_emergency(mavlink_fd, "Offsets: %8.4f, %8.4f, %8.4f", (double)sphere_x[cur_mag], + (double)sphere_y[cur_mag], (double)sphere_z[cur_mag]); result = calibrate_return_error; } }