Skip to content

Commit 5d5e15b

Browse files
committed
Restrict ArduinoISP name collision fix to ArduinoCore-API 1.0.1
ArduinoCore-API 1.0.1 declares a SPISettings class, but ArduinoCore-API 1.0.0 and 1.1.0 don't do this, so the previous preprocessor conditional that was added to fix the ArduinoCore-API sketch for platforms using ArduinoCore-API 1.0.1 actually breaks it for platforms using previous or later versions.
1 parent 4421ef8 commit 5d5e15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void pulse(int pin, int times);
164164

165165
#define SPI_MODE0 0x00
166166

167-
#if !defined(ARDUINO_API_VERSION) // A SPISettings class is declared by ArduinoCore-API
167+
#if !defined(ARDUINO_API_VERSION) || ARDUINO_API_VERSION != 10001 // A SPISettings class is declared by ArduinoCore-API 1.0.1
168168
class SPISettings {
169169
public:
170170
// clock is in Hz

0 commit comments

Comments
 (0)