stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
425 stars 346 forks source link

Latest FreematicsONE library (20190102) does not compile #72

Open lalten opened 5 years ago

lalten commented 5 years ago

The latest FreematicsONE library (20190102) does not compile with AVR core >=1.6.22 because of an internal compiler error, see https://github.com/arduino/ArduinoCore-avr/issues/39

I tried to include the library in my Platform.io project, but had to downgrade the platform-atmelavr to 1.10.1, which is the last one to have AVR core 1.6.21: https://github.com/platformio/platform-atmelavr/blob/v1.10.1/platform.json#L39

So the working platformio.ini looks like:

[env:uno]
platform = atmelavr@1.10.1
board = uno
framework = arduino

lib_deps = https://downloads.sourceforge.net/project/freematics/freematics-one/FreematicsONE-Arduino-20190102.zip

It would be great if you could fix this @stanleyhuangyc