Skip to content

ARDUINO macro has lower version number than Arduino IDE 1.8.x releases #1608

@BitLoose

Description

@BitLoose

Describe the problem

Having upgraded to 2.0.1 from 1.8 my Sketch is throwing an error because it seems the VERSION ID number is lower than the 1.8 release. Here´s the code that throws, which was fine in IDE 1.8:

#if(ARDUINO < 10810)
#error "Unsupported Arduino IDE version, use Arduino IDE 1.8.10 or later from https://www.arduino.cc/en/software"
#endif

To reproduce

  1. Use IDE 2.0.1
  2. Put this code in a sketch:
    #if(ARDUINO < 10810)
    #error "Unsupported Arduino IDE version, use Arduino IDE 1.8.10 or later from https://www.arduino.cc/en/software"
    #endif
  3. Verify

Expected behavior

Should not throw an error unless Arduino have totally changed the VESIONing system

Arduino IDE version

2.0.1

Operating system

Windows

Operating system version

Latest

Additional context

None

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions