Versuchs mal mit deklarierter Variable t
oder so:
int main(void)
{
unsigned char t1;
unsigned char t2;
Init ();
while(1)
{
t1=PollSwitch();
t2=PollSwitch();
if (t1==0 && t1==t2)
{
MotorDir(FWD,FWD);
MotorSpeed(200,200);
StatusLED(GREEN);
Msleep(350);
}
else
{
StatusLED(RED);
MotorSpeed(0,0);
}
}
while(1);
return 0;
}
Lesezeichen