From a341d59ed0d5fb57e1ebd0f709d6167fdd639edd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 20 Jan 2013 22:10:58 +1100 Subject: [PATCH] Copter: fixed test code warnings --- ArduCopter/test.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/test.pde b/ArduCopter/test.pde index b61788ffa4..1583b2660d 100644 --- a/ArduCopter/test.pde +++ b/ArduCopter/test.pde @@ -811,13 +811,13 @@ test_baro(uint8_t argc, const Menu::arg *argv) delay(100); int32_t alt = read_barometer(); // calls barometer.read() - int32_t pres = barometer.get_pressure(); + float pres = barometer.get_pressure(); int16_t temp = barometer.get_temperature(); int32_t raw_pres = barometer.get_raw_pressure(); int32_t raw_temp = barometer.get_raw_temp(); - cliSerial->printf_P(PSTR("alt: %ldcm, pres: %ldmbar, temp: %d/100degC," + cliSerial->printf_P(PSTR("alt: %ldcm, pres: %fmbar, temp: %d/100degC," " raw pres: %ld, raw temp: %ld\n"), - alt, pres,temp, raw_pres, raw_temp); + (long)alt, pres, (int)temp, (long)raw_pres, (long)raw_temp); if(cliSerial->available() > 0) { return (0); }