Skip to content

Commit a2e8061

Browse files
add include guard to pinDefinitions.h to avoid double inclusion issue
1 parent 0141ce4 commit a2e8061

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cores/arduino/pinDefinitions.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef PIN_DEFINITIONS_H
2+
#define PIN_DEFINITIONS_H
3+
14
#ifdef USE_ARDUINO_PINOUT
25

36
#include "drivers/InterruptIn.h"
@@ -36,4 +39,6 @@ PinName digitalPinToPinName(pin_size_t P);
3639

3740
int PinNameToIndex(PinName P);
3841

39-
#endif
42+
#endif // USE_ARDUINO_PINOUT
43+
44+
#endif // PIN_DEFINITIONS_H

0 commit comments

Comments
 (0)