Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d5e15b

Browse filesBrowse 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
Copy full SHA for 5d5e15b

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino

Copy file name to clipboardExpand all lines: examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.