From a2e806146afc92eefb8e00302ede06a36dbc6362 Mon Sep 17 00:00:00 2001 From: Leonardo Cavagnis Date: Mon, 20 Nov 2023 17:48:29 +0100 Subject: [PATCH] add include guard to pinDefinitions.h to avoid double inclusion issue --- cores/arduino/pinDefinitions.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cores/arduino/pinDefinitions.h b/cores/arduino/pinDefinitions.h index 7df17a804..ebb36131d 100644 --- a/cores/arduino/pinDefinitions.h +++ b/cores/arduino/pinDefinitions.h @@ -1,3 +1,6 @@ +#ifndef PIN_DEFINITIONS_H +#define PIN_DEFINITIONS_H + #ifdef USE_ARDUINO_PINOUT #include "drivers/InterruptIn.h" @@ -36,4 +39,6 @@ PinName digitalPinToPinName(pin_size_t P); int PinNameToIndex(PinName P); -#endif \ No newline at end of file +#endif // USE_ARDUINO_PINOUT + +#endif // PIN_DEFINITIONS_H \ No newline at end of file