technyon / Arduino-CMake-Toolchain

CMake toolchain for all Arduino compatible boards
MIT License
19 stars 7 forks source link

arduino version.txt contains extra characters which need truncating #8

Closed TobyChaloner closed 2 months ago

TobyChaloner commented 2 months ago

This one line change truncates garbage from the end of the ARDUINO definition

In the arguments to g++ previously there has been a definition in the format of -DARDUINO=10819 The contents of the file where this is read from has changed and contains non-numeric additions. Some esp8266 code makes the assumption that ARDUINO will be numeric. This change removed the new extra information The value of ARDUINO changes from '108019+dfsg1-1' back to 108019.

/lib/version.txt was found in /usr/share/arduino

Arduino IDE version 1.8.19

TobyChaloner commented 2 months ago

Thanks