msa99:
oh okay, i edited my function:int scanArea(int pos , int delTime){
int result;
myServo.write(pos);
delay(delTime);
result = sonar.ping_cm();
return result;
}this seemed to work since i did'nt get the error message when i verified my code
Do you understand why that compiles OK and previously didn't ?