OKAY PLZ HELP ME WITH THIS ONE
this fits the title so i dont have to make a new topic
i have this code
void loop()
{
line = getline();
while (line == -10)
{
spinleft();
line = getline();
Serial.println(line, DEC);
}
Serial.println(line, DEC);
}
AND IT DOSENT STOP THE LOOP WHEN THE CONDITION ISINT MET
the getline() statment returns -10 when there is no line,
and -5 to +5 when the line is found...
(line follower)
the code prints the line position to serial but when the line is fount (thus changing the variable line to -5 to +5) IT DOSENT STOP THE LOOP