diff --git a/src/ExtensionIOXL9555.hpp b/src/ExtensionIOXL9555.hpp index b56dc06..01e6d09 100644 --- a/src/ExtensionIOXL9555.hpp +++ b/src/ExtensionIOXL9555.hpp @@ -27,7 +27,7 @@ * @date 2022-12-27 * */ - +#pragma once #include "REG/XL9555Constants.h" #include "SensorCommon.tpp" diff --git a/src/ExtensionSPI.tpp b/src/ExtensionSPI.tpp index 6c67c16..2c002cc 100644 --- a/src/ExtensionSPI.tpp +++ b/src/ExtensionSPI.tpp @@ -27,6 +27,7 @@ * @date 2024-01-19 * */ +#pragma once #include "SensorLib.h" diff --git a/src/REG/BMA423Constants.h b/src/REG/BMA423Constants.h index a23cd55..d969cbd 100644 --- a/src/REG/BMA423Constants.h +++ b/src/REG/BMA423Constants.h @@ -1,5 +1,5 @@ -#ifndef __BAM423_CONSTANT_H_ -#define __BAM423_CONSTANT_H_ +#pragma once + #define BMA423_SLAVE_ADDRESS (0x19) @@ -724,5 +724,3 @@ static const unsigned char bma423_config_file[] = { #define BMA423_WAKEUP_INT (0x20) #define BMA423_ANY_NO_MOTION_INT (0x40) #define BMA423_ERROR_INT (0x80) - -#endif \ No newline at end of file diff --git a/src/REG/LTR533Constants.h b/src/REG/LTR533Constants.h index fe0da44..9df1278 100644 --- a/src/REG/LTR533Constants.h +++ b/src/REG/LTR533Constants.h @@ -26,6 +26,7 @@ * @author Lewis He (lewishe@outlook.com) * @date 2023-09-09 */ +#pragma once #define LTR553_SLAVE_ADDRESS (0x23) diff --git a/src/SensorBMA423.hpp b/src/SensorBMA423.hpp index 4aff620..7adc9de 100644 --- a/src/SensorBMA423.hpp +++ b/src/SensorBMA423.hpp @@ -28,7 +28,7 @@ * @note Most source code references come from the https://github.com/boschsensortec/BMA423-Sensor-API * Simplification for Arduino */ - +#pragma once #include "REG/BMA423Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorBMM150.hpp b/src/SensorBMM150.hpp index 35977f6..b07cf10 100644 --- a/src/SensorBMM150.hpp +++ b/src/SensorBMM150.hpp @@ -28,6 +28,7 @@ * @note Most source code references come from the https://github.com/boschsensortec/BMM150-Sensor-API * Simplification for Arduino */ +#pragma once #include "bosch/common/bosch_interfaces.h" #include "bosch/BMM150/bmm150.h" diff --git a/src/SensorCM32181.hpp b/src/SensorCM32181.hpp index f7573fc..63bc874 100644 --- a/src/SensorCM32181.hpp +++ b/src/SensorCM32181.hpp @@ -27,7 +27,7 @@ * @date 2023-04-14 * */ - +#pragma once #include "REG/CM32181Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorDRV2605.hpp b/src/SensorDRV2605.hpp index 26dee4c..87eef56 100644 --- a/src/SensorDRV2605.hpp +++ b/src/SensorDRV2605.hpp @@ -27,6 +27,7 @@ * @date 2023-04-03 * @note Source code from https://github.com/adafruit/Adafruit_DRV2605_Library */ +#pragma once #include "REG/DRV2605Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorLTR553.hpp b/src/SensorLTR553.hpp index 604019a..ef1d5cc 100644 --- a/src/SensorLTR553.hpp +++ b/src/SensorLTR553.hpp @@ -27,6 +27,8 @@ * @date 2023-09-09 * */ +#pragma once + #include "REG/LTR533Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorPCF85063.hpp b/src/SensorPCF85063.hpp index 2534c6e..0fcdfc8 100644 --- a/src/SensorPCF85063.hpp +++ b/src/SensorPCF85063.hpp @@ -27,8 +27,7 @@ * @date 2023-09-07 * */ - - +#pragma once #include "REG/PCF85063Constants.h" #include "SensorCommon.tpp" #include "SensorRTC.h" diff --git a/src/SensorPCF8563.hpp b/src/SensorPCF8563.hpp index f7ab0ba..f48835e 100644 --- a/src/SensorPCF8563.hpp +++ b/src/SensorPCF8563.hpp @@ -27,7 +27,7 @@ * @date 2022-12-09 * */ - +#pragma once #include "REG/PCF8563Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorQMC6310.hpp b/src/SensorQMC6310.hpp index 2506949..f044072 100644 --- a/src/SensorQMC6310.hpp +++ b/src/SensorQMC6310.hpp @@ -27,7 +27,7 @@ * @date 2022-10-16 * */ - +#pragma once #include "REG/QMC6310Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorQMI8658.hpp b/src/SensorQMI8658.hpp index b04414f..99cc829 100644 --- a/src/SensorQMI8658.hpp +++ b/src/SensorQMI8658.hpp @@ -27,6 +27,7 @@ * @date 2022-10-16 * */ +#pragma once #include "REG/QMI8658Constants.h" #include "SensorCommon.tpp" diff --git a/src/SensorRTC.h b/src/SensorRTC.h index 1f3a72c..915748e 100644 --- a/src/SensorRTC.h +++ b/src/SensorRTC.h @@ -27,6 +27,8 @@ * @date 2023-09-07 * */ +#pragma once + #ifdef ARDUINO #include #else diff --git a/src/SensorWireHelper.h b/src/SensorWireHelper.h index 1f94d04..bfd1131 100644 --- a/src/SensorWireHelper.h +++ b/src/SensorWireHelper.h @@ -27,6 +27,7 @@ * @date 2023-09-10 * */ +#pragma once #if defined(ARDUINO) #include diff --git a/src/TouchDrvCHSC5816.hpp b/src/TouchDrvCHSC5816.hpp index 78062b9..31efa43 100644 --- a/src/TouchDrvCHSC5816.hpp +++ b/src/TouchDrvCHSC5816.hpp @@ -27,7 +27,7 @@ * @date 2023-04-12 * */ - +#pragma once #include "REG/CHSC5816Constants.h" #include "TouchDrvInterface.hpp" diff --git a/src/TouchDrvCSTXXX.hpp b/src/TouchDrvCSTXXX.hpp index 96543d8..bb54164 100644 --- a/src/TouchDrvCSTXXX.hpp +++ b/src/TouchDrvCSTXXX.hpp @@ -28,6 +28,8 @@ * @date last 2023-10-05 * */ +#pragma once + #include "REG/CSTxxxConstants.h" #include "touch/TouchClassCST226.h" #include "touch/TouchClassCST816.h" diff --git a/src/TouchDrvFT6X36.hpp b/src/TouchDrvFT6X36.hpp index 71b7065..e8fed40 100644 --- a/src/TouchDrvFT6X36.hpp +++ b/src/TouchDrvFT6X36.hpp @@ -27,7 +27,7 @@ * @date 2023-04-01 * */ - +#pragma once #include "REG/FT6X36Constants.h" #include "TouchDrvInterface.hpp" diff --git a/src/TouchDrvGT911.hpp b/src/TouchDrvGT911.hpp index 87ce768..f3cc801 100644 --- a/src/TouchDrvGT911.hpp +++ b/src/TouchDrvGT911.hpp @@ -27,7 +27,7 @@ * @date 2023-04-12 * */ - +#pragma once #include "REG/GT911Constants.h" #include "TouchDrvInterface.hpp" diff --git a/src/touch/TouchClassCST226.h b/src/touch/TouchClassCST226.h index 31a0e8b..7d1ceaa 100644 --- a/src/touch/TouchClassCST226.h +++ b/src/touch/TouchClassCST226.h @@ -26,6 +26,7 @@ * @author Lewis He (lewishe@outlook.com) * @date 2023-10-06 */ +#pragma once #include "../TouchDrvInterface.hpp" #include "../SensorCommon.tpp" diff --git a/src/touch/TouchClassCST816.h b/src/touch/TouchClassCST816.h index d0ea044..e261a1a 100644 --- a/src/touch/TouchClassCST816.h +++ b/src/touch/TouchClassCST816.h @@ -26,6 +26,8 @@ * @author Lewis He (lewishe@outlook.com) * @date 2023-10-06 */ +#pragma once + #include "../TouchDrvInterface.hpp" #include "../SensorCommon.tpp" #include "../SensorLib.h"