diff --git a/libraries/AP_ADC/AP_ADC.h b/libraries/AP_ADC/AP_ADC.h index 37cfbc6be3..6cd95f097b 100644 --- a/libraries/AP_ADC/AP_ADC.h +++ b/libraries/AP_ADC/AP_ADC.h @@ -1,5 +1,4 @@ -#ifndef AP_ADC_H -#define AP_ADC_H +#pragma once #include /* @@ -58,5 +57,3 @@ private: #include "AP_ADC_ADS7844.h" #include "AP_ADC_ADS1115.h" - -#endif diff --git a/libraries/AP_ADC/AP_ADC_ADS7844.h b/libraries/AP_ADC/AP_ADC_ADS7844.h index c4244f05b5..96db42aec8 100644 --- a/libraries/AP_ADC/AP_ADC_ADS7844.h +++ b/libraries/AP_ADC/AP_ADC_ADS7844.h @@ -1,7 +1,5 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- -#ifndef __AP_ADC_ADS7844_H__ -#define __AP_ADC_ADS7844_H__ - +#pragma once #include #include "AP_ADC.h" @@ -30,5 +28,3 @@ private: AP_HAL::SPIDeviceDriver *_spi; AP_HAL::Semaphore *_spi_sem; }; - -#endif