Skip to content

Commit 084d511

Browse files
committed
fixed ARDUINO define Arduino SKD versions between 1.0.0 and 1.6.0
1 parent 9937311 commit 084d511

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Change Log
22

3-
### Version 2.0.0 (Dec 13th 2017)
3+
# Version [2.0.1](https://github.com/arduino-cmake/arduino-cmake/compare/v2.0.0...v2.0.1) (Dec 19th 2017)
4+
5+
### Bug fixes
6+
7+
* fixed `-DARDUINO` define for Arduino SDK versions between 1.0.0 and 1.5.8. This bug caused to included `WProgram.h` instead of `Arduino.h` for aforementioned versions.
8+
9+
# Version 2.0.0 (Dec 13th 2017)
410

511
An epic version which integrates too many changes to be listed and recorded since the latest stable version, which was **1.0.0**. It has been released almost <u>4 years ago</u>!
612

cmake/Platform/Core/BoardFlags/FlagsSetter.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ function(_get_normalized_sdk_version OUTPUT_VAR)
7070
# -DARDUINO format after 1.0.0 combines all 3 version parts together,
7171
# e.g. for 1.5.3 version -DARDUINO=153
7272
set(NORMALIZED_VERSION
73-
"${ARDUINO_SDK_VERSION_MAJOR}\
74-
${ARDUINO_SDK_VERSION_MINOR}\
75-
${ARDUINO_SDK_VERSION_PATCH}")
73+
"${ARDUINO_SDK_VERSION_MAJOR}${ARDUINO_SDK_VERSION_MINOR}${ARDUINO_SDK_VERSION_PATCH}")
7674
endif ()
7775
endif ()
7876

0 commit comments

Comments
 (0)