Skip to content

Commit d95dd66

Browse files
committed
Optimize Attinyx4 BIN redefinition warning arduino#4784
1 parent a7ca976 commit d95dd66

File tree

1 file changed

+5
-0
lines changed
  • hardware/arduino/avr/cores/arduino

1 file changed

+5
-0
lines changed

Diff for: hardware/arduino/avr/cores/arduino/Print.h

+5
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
#define DEC 10
3030
#define HEX 16
3131
#define OCT 8
32+
// Special Attinyx4 definition conflict, give the internal iotnx4.h a higher priority
33+
#ifndef BIN
3234
#define BIN 2
35+
#else
36+
#warning Not using the correct BIN definition for print in this file! See #4784 on Github.
37+
#endif
3338

3439
class Print
3540
{

0 commit comments

Comments
 (0)