Browse Source

AP_RPM: replace header guard with pragma once

master
Lucas De Marchi 9 years ago committed by Andrew Tridgell
parent
commit
109f807260
  1. 5
      libraries/AP_RPM/AP_RPM.h
  2. 5
      libraries/AP_RPM/RPM_Backend.h
  3. 6
      libraries/AP_RPM/RPM_PX4_PWM.h
  4. 5
      libraries/AP_RPM/RPM_SITL.h

5
libraries/AP_RPM/AP_RPM.h

@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RPM_H__
#define __RPM_H__
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
@ -97,4 +95,3 @@ private: @@ -97,4 +95,3 @@ private:
void detect_instance(uint8_t instance);
void update_instance(uint8_t instance);
};
#endif // __RPM_H__

5
libraries/AP_RPM/RPM_Backend.h

@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __AP_RPM_BACKEND_H__
#define __AP_RPM_BACKEND_H__
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
@ -39,4 +37,3 @@ protected: @@ -39,4 +37,3 @@ protected:
AP_RPM &ap_rpm;
AP_RPM::RPM_State &state;
};
#endif // __AP_RPM_BACKEND_H__

6
libraries/AP_RPM/RPM_PX4_PWM.h

@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AP_RPM_PX4_PWM_H
#define AP_RPM_PX4_PWM_H
#pragma once
#include "AP_RPM.h"
#include "RPM_Backend.h"
@ -41,5 +39,3 @@ private: @@ -41,5 +39,3 @@ private:
ModeFilterFloat_Size5 signal_quality_filter {3};
};
#endif // AP_RPM_PX4_PWM_H

5
libraries/AP_RPM/RPM_SITL.h

@ -13,9 +13,7 @@ @@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AP_RPM_SITL_H
#define AP_RPM_SITL_H
#pragma once
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
@ -37,4 +35,3 @@ private: @@ -37,4 +35,3 @@ private:
};
#endif // CONFIG_HAL_BOARD
#endif // AP_RPM_SITL_H

Loading…
Cancel
Save