From 737feabc6c63caecebc5e4a9268172105e61ad09 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Wed, 28 Dec 2011 22:48:59 -0800 Subject: [PATCH] Fixed a 1280 only test --- ArduCopter/test.pde | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ArduCopter/test.pde b/ArduCopter/test.pde index 789dec4d86..d3d391b614 100644 --- a/ArduCopter/test.pde +++ b/ArduCopter/test.pde @@ -873,13 +873,15 @@ test_baro(uint8_t argc, const Menu::arg *argv) while(1){ delay(100); int32_t alt = read_barometer(); // calls barometer.read() + + #if defined( __AVR_ATmega1280__ ) + Serial.printf_P(PSTR("alt: %ldcm\n"),alt); + + #else int32_t 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(); - #if defined( __AVR_ATmega1280__ ) - Serial.printf_P(PSTR("alt: %ldcm\n"),alt); - #else Serial.printf_P(PSTR("alt: %ldcm, pres: %ldmbar, temp: %d/100degC," " raw pres: %ld, raw temp: %ld\n"), alt, pres ,temp, raw_pres, raw_temp);