I keep getting the following error. in the following code...
Arduino: 1.6.8 (Windows 10), Board: "Arduino/Genuino Uno"
sonar:87: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( frontLeft < safeTurn && frontLeft != 0){
^
exit status 1
ISO C++ forbids comparison between pointer and integer [-fpermissive]
I cant see why it thinks i am comparing a pointer and a integer , safeTurn is defined gloabaly. frontLeft is given value at the start of this function.
Anymore questions or it is unclear please ask thnaks for any help given in advance.