LowPowerLab Forum

Hardware support => Moteino => Topic started by: andre_x on April 15, 2017, 05:16:27 AM

Title: RFM69.h:76:1: error: expected ',' or ';' before 'class' [solved]
Post by: andre_x on April 15, 2017, 05:16:27 AM
Hi guys,
I've been editing the "GarageMote" to use a Moteino in my greenhouse.
All of the sudden I'm getting this error:RFM69.h:76:1: error: expected ',' or ';' before 'class'
I'm saying "all of the sudden" because the last edit happened last night at...well, it was late and I don't remember what I've done  :-X
I haven't touched the RFM69.h file and if I open any RFM69 example, it compiles without any problem
What can cause this problem?
Attached my sketch.
Thanks!
Title: Re: RFM69.h:76:1: error: expected ',' or ';' before 'class'
Post by: syrinxtech on April 15, 2017, 09:21:59 AM
It appears you don't have a trailing semicolon on this line:

unsigned long lastValveOpen[valvesNumber] = {0, 0, 0, 0}

Since this line immediately precedes the line including the RFM69 library, that would do it.


Title: Re: RFM69.h:76:1: error: expected ',' or ';' before 'class'
Post by: andre_x on April 15, 2017, 09:38:52 AM
Damned it!
That was it. A new thing that I've learned!
Thanks!!!
Title: Re: RFM69.h:76:1: error: expected ',' or ';' before 'class'
Post by: syrinxtech on April 15, 2017, 10:03:44 AM
No problem, glad to help.