expected initializer before 'To'

Hi there, i seem to be continously getting this error message when I try to verify my code. I tried changing the line that has that error, but the error just seems to keep jumping to another line. (Eg, error was first at ino:16:19 and now it changed to ino:4:19

can anybody explain this error to me? :confused:

Combined_Test_03.ino (2.8 KB)

Please read the post at the top of this Forum by Nick Gammon on the proper way to post code here using code tags. The likely reason you haven't had any responses is because readers a loathe to open unknown files on their computers.

zoeymoey: Hi there, i seem to be continously getting this error message when I try to verify my code. I tried changing the line that has that error, but the error just seems to keep jumping to another line. (Eg, error was first at ino:16:19 and now it changed to ino:4:19

can anybody explain this error to me? :confused:

long microseconds To Centimeters(long microseconds) {
  return microseconds /29/2 ;
}

in C++ identifiers cannot use spaces