From 402f0cce852224f33518dc70d4756fe7969fb747 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Mon, 6 Feb 2017 11:10:54 -0800 Subject: [PATCH] AP_Baro: examples: fix coding style --- libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp b/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp index 0e1705078b..3ec0b03c9b 100644 --- a/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp +++ b/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp @@ -2,17 +2,20 @@ generic Baro driver test */ -#include #include #include +#include -const AP_HAL::HAL& hal = AP_HAL::get_HAL(); +const AP_HAL::HAL &hal = AP_HAL::get_HAL(); static AP_Baro barometer; static uint32_t timer; static uint8_t counter; +void setup(); +void loop(); + void setup() { hal.console->printf("Barometer library test\n"); @@ -30,7 +33,7 @@ void setup() void loop() { // run accumulate() at 50Hz and update() at 10Hz - if((AP_HAL::micros() - timer) > 20*1000UL) { + if ((AP_HAL::micros() - timer) > 20 * 1000UL) { timer = AP_HAL::micros(); barometer.accumulate(); if (counter++ < 5) {