From 08cc7b2472ddbc61e6c3fcdb4404e32e539b6640 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:25:57 -0200 Subject: [PATCH] RC_Channel: replace header guard with pragma once --- libraries/RC_Channel/RC_Channel.h | 6 +----- libraries/RC_Channel/RC_Channel_aux.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index ff010dbae6..0e827c72ad 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -2,9 +2,7 @@ /// @file RC_Channel.h /// @brief RC_Channel manager, with EEPROM-backed storage of constants. - -#ifndef __RC_CHANNEL_H__ -#define __RC_CHANNEL_H__ +#pragma once #include #include @@ -162,5 +160,3 @@ protected: // This is ugly, but it fixes poorly architected library #include "RC_Channel_aux.h" - -#endif diff --git a/libraries/RC_Channel/RC_Channel_aux.h b/libraries/RC_Channel/RC_Channel_aux.h index d986d57788..895b606484 100644 --- a/libraries/RC_Channel/RC_Channel_aux.h +++ b/libraries/RC_Channel/RC_Channel_aux.h @@ -3,9 +3,7 @@ /// @file RC_Channel_aux.h /// @brief RC_Channel manager for auxiliary channels (5..8), with EEPROM-backed storage of constants. /// @author Amilcar Lucas - -#ifndef __RC_CHANNEL_AUX_H__ -#define __RC_CHANNEL_AUX_H__ +#pragma once #include #include "RC_Channel.h" @@ -151,5 +149,3 @@ private: void aux_servo_function_setup(void); }; - -#endif /* RC_CHANNEL_AUX_H_ */