Skip to content

Commit

Permalink
Merge pull request #765 from leonardocavagnis/pin_definitions_guard
Browse files Browse the repository at this point in the history
Add include guard to pinDefinitions.h to avoid double inclusion issue
  • Loading branch information
facchinm committed Nov 20, 2023
2 parents 0141ce4 + a2e8061 commit 17873e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cores/arduino/pinDefinitions.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef PIN_DEFINITIONS_H
#define PIN_DEFINITIONS_H

#ifdef USE_ARDUINO_PINOUT

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

int PinNameToIndex(PinName P);

#endif
#endif // USE_ARDUINO_PINOUT

#endif // PIN_DEFINITIONS_H

0 comments on commit 17873e0

Please sign in to comment.