RC_Channel: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:57 -02:00 committed by Andrew Tridgell
parent 96c30aea39
commit 08cc7b2472
2 changed files with 2 additions and 10 deletions

View File

@ -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 <AP_Common/AP_Common.h>
#include <AP_Param/AP_Param.h>
@ -162,5 +160,3 @@ protected:
// This is ugly, but it fixes poorly architected library
#include "RC_Channel_aux.h"
#endif

View File

@ -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 <AP_HAL/AP_HAL.h>
#include "RC_Channel.h"
@ -151,5 +149,3 @@ private:
void aux_servo_function_setup(void);
};
#endif /* RC_CHANNEL_AUX_H_ */