From e1f91588afefaf44a26a7b9e179a6b928158b684 Mon Sep 17 00:00:00 2001 From: Steffen Windoffer Date: Thu, 24 Aug 2017 15:13:01 +0200 Subject: [PATCH] add missing pragma once --- src/main/build/version.h | 2 ++ src/main/common/bitarray.h | 2 ++ src/main/common/gps_conversion.h | 2 ++ src/main/config/parameter_group_ids.h | 3 ++- src/main/drivers/gyro_sync.h | 2 ++ src/main/drivers/vtx_common.h | 2 ++ src/main/io/dashboard.h | 2 ++ src/main/target/CC3D/target.h | 2 ++ src/main/target/LUMBAF3/target.h | 2 ++ 9 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/build/version.h b/src/main/build/version.h index 4770ad98e9..0c4ef60692 100644 --- a/src/main/build/version.h +++ b/src/main/build/version.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + #define FC_FIRMWARE_NAME "Betaflight" #define FC_VERSION_MAJOR 3 // increment when a major release is made (big new feature, etc) #define FC_VERSION_MINOR 2 // increment when a minor release is made (small new feature, change etc) diff --git a/src/main/common/bitarray.h b/src/main/common/bitarray.h index 48032bb297..50dab5909a 100644 --- a/src/main/common/bitarray.h +++ b/src/main/common/bitarray.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + bool bitArrayGet(const void *array, unsigned bit); void bitArraySet(void *array, unsigned bit); void bitArrayClr(void *array, unsigned bit); diff --git a/src/main/common/gps_conversion.h b/src/main/common/gps_conversion.h index 81adc0b01c..c7b07f373e 100644 --- a/src/main/common/gps_conversion.h +++ b/src/main/common/gps_conversion.h @@ -15,4 +15,6 @@ * along with Cleanflight. If not, see . */ +#pragma once + uint32_t GPS_coord_to_degrees(const char* coordinateString); diff --git a/src/main/config/parameter_group_ids.h b/src/main/config/parameter_group_ids.h index 3b3e47676e..ea95a6a80e 100644 --- a/src/main/config/parameter_group_ids.h +++ b/src/main/config/parameter_group_ids.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + // FC configuration (defined by cleanflight v1) #define PG_FAILSAFE_CONFIG 1 // struct OK #define PG_BOARD_ALIGNMENT 2 // struct OK @@ -125,4 +127,3 @@ #define PG_RESERVED_FOR_TESTING_1 4095 #define PG_RESERVED_FOR_TESTING_2 4094 #define PG_RESERVED_FOR_TESTING_3 4093 - diff --git a/src/main/drivers/gyro_sync.h b/src/main/drivers/gyro_sync.h index f488be5468..335e1c279c 100644 --- a/src/main/drivers/gyro_sync.h +++ b/src/main/drivers/gyro_sync.h @@ -5,6 +5,8 @@ * Author: borisb */ +#pragma once + #include "drivers/accgyro/accgyro.h" bool gyroSyncCheckUpdate(gyroDev_t *gyro); diff --git a/src/main/drivers/vtx_common.h b/src/main/drivers/vtx_common.h index d72bf79271..000859ccab 100644 --- a/src/main/drivers/vtx_common.h +++ b/src/main/drivers/vtx_common.h @@ -17,6 +17,8 @@ /* Created by jflyper */ +#pragma once + typedef enum { VTXDEV_UNSUPPORTED = 0, // reserved for MSP VTXDEV_RTC6705 = 1, diff --git a/src/main/io/dashboard.h b/src/main/io/dashboard.h index 10339369e9..becc55d402 100644 --- a/src/main/io/dashboard.h +++ b/src/main/io/dashboard.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + #include "common/time.h" #include "config/parameter_group.h" #include "drivers/bus_i2c.h" diff --git a/src/main/target/CC3D/target.h b/src/main/target/CC3D/target.h index fba7f6b694..4fed0d38e3 100644 --- a/src/main/target/CC3D/target.h +++ b/src/main/target/CC3D/target.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + #define TARGET_BOARD_IDENTIFIER "CC3D" // CopterControl 3D #define LED0_PIN PB3 diff --git a/src/main/target/LUMBAF3/target.h b/src/main/target/LUMBAF3/target.h index aa579ef8f8..8cfd7a5e8e 100644 --- a/src/main/target/LUMBAF3/target.h +++ b/src/main/target/LUMBAF3/target.h @@ -15,6 +15,8 @@ * along with Cleanflight. If not, see . */ +#pragma once + #define TARGET_BOARD_IDENTIFIER "MCF3" // LumbaF3 Flight Controller by mC #define LED0_PIN PB3