Quote:
|
Originally Posted by miketwalker
Code:
if (rc_dig_in01)
{
Autonomous_1();
}
else
{
Autonomous_2();
}
void Autonomous_1()
{
pwm01 = 254;
pwm02 = 254;
}
void Autonomous_2()
{
pwm01 = 127;
pwm02 = 127;
}
|
Is that the code exactly as it appears in your file? If so, why isn't the IF statement inside a function?