Skip to content

Commit 17873e0

Browse files
authored
Merge pull request #765 from leonardocavagnis/pin_definitions_guard
Add include guard to pinDefinitions.h to avoid double inclusion issue
2 parents 0141ce4 + a2e8061 commit 17873e0

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)