From cdf296d8f63e96efa2e5af7928a942dd3f80f80b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Feb 2012 08:34:10 +1100 Subject: [PATCH] fixed some printf casts --- ArduPlane/test.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduPlane/test.pde b/ArduPlane/test.pde index 105d343ea1..2b0b726b07 100644 --- a/ArduPlane/test.pde +++ b/ArduPlane/test.pde @@ -611,9 +611,9 @@ test_mag(uint8_t argc, const Menu::arg *argv) Vector3f maggy = compass.get_offsets(); Serial.printf_P(PSTR("Heading: %ld, XYZ: %d, %d, %d,\tXYZoff: %6.2f, %6.2f, %6.2f\n"), (wrap_360(ToDeg(compass.heading) * 100)) /100, - compass.mag_x, - compass.mag_y, - compass.mag_z, + (int)compass.mag_x, + (int)compass.mag_y, + (int)compass.mag_z, maggy.x, maggy.y, maggy.z);