ArduPlane: fix wrong printf format for 32 bits

Heading is a 32 bits value, so use %d.
This commit is contained in:
Lucas De Marchi 2015-10-26 11:05:00 -02:00 committed by Randy Mackay
parent f4e71affa1
commit d40349d6ae
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ int8_t Plane::test_mag(uint8_t argc, const Menu::arg *argv)
if (compass.healthy()) {
const Vector3f &mag_ofs = compass.get_offsets();
const Vector3f &mag = compass.get_field();
cliSerial->printf("Heading: %ld, XYZ: %.0f, %.0f, %.0f,\tXYZoff: %6.2f, %6.2f, %6.2f\n",
cliSerial->printf("Heading: %d, XYZ: %.0f, %.0f, %.0f,\tXYZoff: %6.2f, %6.2f, %6.2f\n",
(wrap_360_cd(ToDeg(heading) * 100)) /100,
(double)mag.x, (double)mag.y, (double)mag.z,
(double)mag_ofs.x, (double)mag_ofs.y, (double)mag_ofs.z);