Reply To: Coding

#20286
AdminFred Graham
Keymaster

Hi Wayne,

You may just be missing a function declaration at the top of your file for your getDistance function. This tells the compiler a couple of things such as the functions name, return type, and parameter list. Since your getDistance function does not take any parameters you should just be able to declare it as:

long getDistance();

Try adding this below you #include and #define statements. Hopefully this will resolve.

Fred