Yesterday my code on particle dev that was previously working began giving a strange compile error. It goes away when I comment out the top lines of my code.
Commenting out this part removes the compile error:
What I have tried.
My device target is set to 6.1 in Particle Build, and the device is running 6.1.
I re-installed with the latest Particle Dev from particle website.
Other than those checks I’m stuck on what to do. These commands work just fine on the web IDE however, the program I have currently is very large with multiple files and trying to get in to web IDE would be very difficult.
This error was not showing up until 3/14/17. On 3/11/18 It compiled without error.
Is anyone else experiencing difficulty with Particle Dev and System_Thread() and System_Mode() ?
This might have something to do with a recent update to the Wiring preprocessor.
Can you try swapping around SYSTEM_MODE() and SYSTEM_THREAD(), adding/removing blank lines before/after, remove the semicolon after the instructions.
I tried reversing the order of the commands, as well as removing the spaces, and that did not change the error.
I do get something different when I remove the semi-colon of the one above. It seems to only color in the lower command (SYSTEM_MODE in this case) when there is a semi colon.
The rest of the code prior to setup is a series of include statements for other library files I would like to use.