You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the switch to 1.6.X the Arduino developers changed the format of the ARDUINO macro.
Previously e.g. 1.5.8 was mapped to 158, i.e. one digit per component of the version number, but this meant they couldn't easily encode e.g. 1.5.10.
So they moved to two digits for the minor and patch components of the version number, so 1.6.0 became 10600 (the current committed revision is 10605).
You can see this switch in format in commit b9e186e.
Here in BaseNoGui.java you can see they define REVISION, this is picked up by PreferencesData.java that writes it out to the IDE preferences as runtime.ide.version which in turn is picked up by the platform.txt files as the value used for the ARDUINO macro.
This all means that at the moment when I use the 1.6.1 Arduino IDE the IDE specifies -DARDUINO=10601 while the Eclipse plugin specifies a different value, i.e. -DARDUINO=161.
The text was updated successfully, but these errors were encountered:
Would life not be easier if the value was simply put in the platform.txt file?
I'm not using these defines but someone will sooner or later. So I'll mod it
It might indeed be simpler if things were setup as you suggest.
The ARDUINO macro is quite important, even if you're not using it directly. It's value is checked by various include files in the standard Arduino libraries and by lot's of third party libraries.
PS thanks for all your work on the Arduino plugin for Eclipse. It's a super product - I'd go mad without it 😃
With the switch to 1.6.X the Arduino developers changed the format of the
ARDUINO
macro.Previously e.g. 1.5.8 was mapped to 158, i.e. one digit per component of the version number, but this meant they couldn't easily encode e.g. 1.5.10.
So they moved to two digits for the minor and patch components of the version number, so 1.6.0 became 10600 (the current committed revision is 10605).
You can see this switch in format in commit
b9e186e
.Here in
BaseNoGui.java
you can see they defineREVISION
, this is picked up byPreferencesData.java
that writes it out to the IDE preferences asruntime.ide.version
which in turn is picked up by theplatform.txt
files as the value used for theARDUINO
macro.This all means that at the moment when I use the 1.6.1 Arduino IDE the IDE specifies
-DARDUINO=10601
while the Eclipse plugin specifies a different value, i.e.-DARDUINO=161
.The text was updated successfully, but these errors were encountered: