Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit5d5e15b

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 parent4421ef8 commit5d5e15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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
#defineSPI_MODE00x00
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
classSPISettings {
169169
public:
170170
// clock is in Hz

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp