Skip to content

Commit f108447

Browse files
Define __PROG_TYPES_COMPAT__
The regular arduino core uses some types like prog_char, which are deprecated on newer avr-libc versions. Since the Pinoccio requires a newer toolchain than is included with Arduino, this breaks. A fix is pending in the Arduino repo, but until it is in a released IDE version, this workaround should fix things. See also arduino/Arduino#1695
1 parent 63faef7 commit f108447

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hardware/pinoccio/avr/boards.txt

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pinoccio.build.f_cpu=16000000L
2121
pinoccio.build.core=arduino:arduino
2222
pinoccio.build.variant=pinoccio
2323
pinoccio.build.board=PINOCCIO
24+
# Workaround for https://github.com/arduino/Arduino/pull/1695
25+
pinoccio.build.extra_flags=-D__PROG_TYPES_COMPAT__
2426

2527
##############################################################
2628
pinoccio128.name=Pinoccio 128RFA1
@@ -45,3 +47,5 @@ pinoccio128.build.f_cpu=16000000L
4547
pinoccio128.build.core=arduino:arduino
4648
pinoccio128.build.variant=pinoccio
4749
pinoccio.build.board=PINOCCIO
50+
# Workaround for https://github.com/arduino/Arduino/pull/1695
51+
pinoccio.build.extra_flags=-D__PROG_TYPES_COMPAT__

0 commit comments

Comments
 (0)