Skip to content

Commit 061c88f

Browse files
author
dave
committed
Very minor change to make it work in Arduino environment if it is directly included.
1 parent dc0e54a commit 061c88f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PrintCompat.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
* @brief Compatibility with the Arduino Print API for mbed boards, should never be included in an Arduino build
1515
*/
1616

17-
#ifdef IOA_USE_ARDUINO
18-
# error "Print compatibility has been included on Arduino, this will cause problems, please report."
19-
#endif
17+
#ifndef IOA_USE_ARDUINO
2018

2119
// These are definitions of the mode in which the integer print can work, either decimal, hex or binary.
2220
#define DEC 10
@@ -235,5 +233,6 @@ class Print {
235233

236234
//forward definition of yield() function
237235
void yield();
236+
#endif // IOA_USE_ARDUINO
238237

239238
#endif //IOA_PRINT_COMPAT_H

0 commit comments

Comments
 (0)