Hi all,
I just was making a small project that takes multiple readings of one sensor per second, and ran into an error message that I can't figure out.
In the IDE, when I compile, this line of code becomes yellow:
if(sample3 <= 200 || sample31 <= 200 || sample32 <= 200 || sample33 <= 200 || sample34 <= 200 || sample35 <= 200 || sample36 <= 200 || sample37 <= 200 || sample38 <= 200 || sample39 <= 200 || sample301 <= 200 || sample302 <= 200 || sample303 <= 200 || sample304 <= 200 || sample305 <= || sample306 <= 200) {
Yep, somehow I fit all of that into one line of code.
And I get this error message:
SodaMachine.cpp: In function 'void loop()':
SodaMachine:156: error: expected primary-expression before '||' token
Any Help?
Thanks,
Qtechknow