|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: MPLAB syntax error?? No Way!!
Silly question, but MAXTORQUE is defined globally somewhere? Hmm... is that a syntax error or something else?
If you comment out the first if thru to the else /*if .... else*/ so the else if is now an if, does the error drop down to that if or does it go away? |
|
#2
|
|||
|
|||
|
Re: MPLAB syntax error?? No Way!!
The setpwm / setpmw error will crop up after this error is fixed.
Heh. I feel like I'm on a game show, with all these answers coming back. |
|
#3
|
||||
|
||||
|
Re: MPLAB syntax error?? No Way!!
Quote:
I tried the comment out as you suggested before posting the question. The error moves to the new "if" statement. |
|
#4
|
|||
|
|||
|
Re: MPLAB syntax error?? No Way!!
Quote:
If you change MAXTORQUE to 100 does the error go away? (I'm also imagining poor billbo911 running from the computer with mplab all the way across the room to the computer with internet access.) Last edited by Roger : 25-01-2008 at 14:49. Reason: Added an idea |
|
#5
|
||||
|
||||
|
Re: MPLAB syntax error?? No Way!!
Quote:
![]() |
|
#6
|
||||
|
||||
|
Re: MPLAB syntax error?? No Way!!
Quote:
No, it doesn't go away when defined locally. Quote:
No semi-colon on definition. BUT!!! We have a winner!!! The line looked like this "#define MAXTORQUE = 100" The equal sign killed it. Quote:
THANK YOU EVERYONE for helping me find this problem.!! Note to self: "=" good in variable declaration, bad in definition. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 180:Error: syntax error help! | seanl | Programming | 8 | 04-02-2007 11:31 |
| MPLAB syntax problem | dpick1055 | Programming | 6 | 23-01-2007 13:28 |
| C18 v2.4 -- Syntax error where there is no syntax error | Joel J | Programming | 7 | 12-01-2007 17:27 |
| Syntax Error! | Denz | Programming | 15 | 04-02-2006 23:57 |