Skip to content

Commit

Permalink
Fix F() macro inclusion issues
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Jun 21, 2019
1 parent 8124313 commit 1c4c559
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cores/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@
#if defined(__cplusplus)
#if !defined(ARDUINO_AS_MBED_LIBRARY)
#define PinMode MbedPinMode
#endif
#ifdef F
#define Arduino_F F
#undef F
#endif // F (mbed included after arduino.h)
#define F Mbed_F
#include "mbed.h"
#undef PinMode
#endif
#undef F
#endif // !ARDUINO_AS_MBED_LIBRARY
#endif //__cplusplus

#if defined(ARDUINO_AS_MBED_LIBRARY)
#define PinMode ArduinoPinMode
Expand Down

0 comments on commit 1c4c559

Please sign in to comment.