ok, danke^^ hat alles so weit funktioniert!!!

nun wollte ich ein programm schreiben, durch das der asuro so weit gerade aus fährt, bis er wo anstöst und ab da nur noch rückwärts, hat aber nicht so ganz geklappt :

Code:
#include "asuro.h"

int main(void)
{
	Init();   
	StatusLED(1);
	MotorDir(FWD,FWD);
	MotorSpeed(120,120);
	
	while(1)
	if (PollSwitch() != 0)
		{	while(1)
				{MotorDir(RWD,RWD);
				 MotorSpeed(120,120);}
		}
	else
		{MotorDir(FWD,FWD);
		 MotorSpeed(120,120);}
			 
	return 0;
}
gruß