Go Down

Topic: passing argument to a function (Read 808 times) previous topic - next topic

Nicotiere

thank you, errors was coming from the 2 return false but also from the end comment on this line "Serial.print(" "); } */"
I use kate as editor is there someone who can explain why the line in error is not the good number. In my case I have to substract -12

wildbill

The arduino IDE adds your sketch into a template that contains a main function to make it a valid C++ program. That means that there is extra content that you don't see which throws off the line numbers in gcc error messages. The more recent versions of the IDE seem to be better at showing the actual line where the issue is.

Nicotiere

yes thanks it works. Also removed the second return false and the misplaced end comment in this part.

Go Up