Pages: 1 [2]   Go Down
Author Topic: passing argument to a function  (Read 509 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 65
Posts: 3643
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 [2]   Go Up
Jump to: