|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Simple Syntax Error
I have a very simple code, but when I compile I keep getting syntax errors. Unfortunatly, the MPLAB does not tell you anything but that there is a syntax error. I've been trying to debug it, and it seems to be either the "void Autonomous_1()" line, or the IF loop. It seems like it should work, and multiple people have checked it and agreed. Does anybody see something that I'm not? It's so simple, I don't understand why it won't work. Thanks.
Code:
if (rc_dig_in01)
{
Autonomous_1();
}
else
{
Autonomous_2();
}
void Autonomous_1()
{
pwm01 = 254;
pwm02 = 254;
}
void Autonomous_2()
{
pwm01 = 127;
pwm02 = 127;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PBASIC Syntax Question | Raven_Writer | Programming | 4 | 20-08-2003 08:07 |
| PBASIC language syntax | WizardOfAz | Programming | 14 | 30-04-2003 10:23 |
| Basic Run Error | BBFIRSTCHICK | Programming | 10 | 02-04-2003 22:43 |
| EMERGENCY! EPROM FULL error?!? | CHSguard72 | Programming | 2 | 05-03-2003 20:51 |
| Basic Run Error | Ulibrium | Programming | 12 | 21-02-2002 01:02 |