From 00219c5e0cf726b2c5ff51a2338127eb2d8de1ac Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Tue, 11 Aug 2015 16:28:43 +1000 Subject: [PATCH] AP_Frsky_Telem: standardize inclusion of libaries headers This commit changes the way libraries headers are included in source files: - If the header is in the same directory the source belongs to, so the notation '#include ""' is used with the path relative to the directory containing the source. - If the header is outside the directory containing the source, then we use the notation '#include <>' with the path relative to libraries folder. Some of the advantages of such approach: - Only one search path for libraries headers. - OSs like Windows may have a better lookup time. --- libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp | 2 +- libraries/AP_Frsky_Telem/AP_Frsky_Telem.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp b/libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp index b39775be4c..5dbe9bd6b5 100644 --- a/libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp +++ b/libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp @@ -20,7 +20,7 @@ /* FRSKY Telemetry library */ -#include +#include "AP_Frsky_Telem.h" extern const AP_HAL::HAL& hal; //constructor diff --git a/libraries/AP_Frsky_Telem/AP_Frsky_Telem.h b/libraries/AP_Frsky_Telem/AP_Frsky_Telem.h index d13c59cd91..851c119513 100644 --- a/libraries/AP_Frsky_Telem/AP_Frsky_Telem.h +++ b/libraries/AP_Frsky_Telem/AP_Frsky_Telem.h @@ -17,14 +17,14 @@ #ifndef __AP_FRSKY_TELEM_H__ #define __AP_FRSKY_TELEM_H__ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include /* FrSky sensor hub data IDs */ #define FRSKY_ID_GPS_ALT_BP 0x01