muntoo wrote:Actually, there's lots of different coding styles, but I prefer this:
Also, I indent using tabs with width of 4 spaces.
Well, as you say, there are many different ways of using white space. When I program in BASIC, I only indent one space, but in NXC and NQC, I indent two spaces. I also use tab, but I have it set to 2 spaces.
jojoguy14 wrote:... So...could this just be a bug? Maybe?
Well, I didn't compile the code, I was just mentioning the whole thing with white space. I honestly doubted that it would compile, seeing an extra parameter in the OnFwd and Off commands.
Don't start using NXC with anything related to RS485. Start by making simple programs, and grow from them. The "NXC_tutorial" is a great place to start. In it, you can learn a TON about using NXC (through practice), but also a lot about syntax, white space, and fixing errors that cause compiler errors.