ricaun / ArduinoUniqueID

Arduino Library to gets the Manufacture Serial Number from the Atmel AVR, SAM, SAMD, STM32, and ESP Microcontroller.
MIT License
220 stars 50 forks source link

Unable to be used in Platform IO #3

Closed jorgie0 closed 4 years ago

jorgie0 commented 4 years ago

If PlatformIO is used as the compiler for an Arduino sketch the 2nd time the include file is used it causes a compilation issue. expected ')' before '.' token Line 51

This is not seen under Arduino IDE as it creates a single source code file before it compiles.

ricaun commented 4 years ago

Hello, What do you mean the second time?! I tested on PlatformIO and works fine... Are you using AVR, SAM, SAMD, STM32, or ESP? Can you share the code? Thanks.

jorgie0 commented 4 years ago

Hi, My apologies attempting to reproduce using a small example proved me wrong. Something in another *.h file is causing the problem which I will now investigate.