Go Down

Topic: Expected expression error (Read 129 times) previous topic - next topic

manniesm

Cannot find error "expected primary expression before { taken".

AWOL

Please post your code and the exact error message you're seeing.

I'm not going to waste my mobile data on 200k of PDF.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

evanmars

Posting the complete error would help.

johnwasser

You have:
Code: [Select]
} else if ((sensorValue >= 300) && {sensorValue < 700) {

The "&& {" is one problem.  It should be "&& (" and you are missing a ')' after the "700)".

This would be much easier to catch if you had used Toole->Auto Format on your code.  Any you should have included the code in your post.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Delta_G

Any you should have included the code in your post.
For sure, but if you really must attach it then attach it as a .ino or even a .txt.  Why convert it to .pdf and waste people's bandwidth?
If at first you don't succeed, up - home - sudo - enter.

Go Up