PDA

View Full Version : Gotchas: A problem that caught me



boroko
- 9th July 2010, 09:22
HI all,

Ran into one that stumped me for a while (not like that is so unusual)
The code snippet looked something like this:

for CounterB=0 to 31 7
hserin [ByteData[CounterB]]
next CounterB



for CounterB=0 to 15
hserin [ByteData[CounterB]]
next CounterB

The first example would not compile, the second one would
Syntax error on the first line, and NEXT without a FOR on the last.

After puzzling for way too long, I noticed the slider on the bottom.....
I found that I had a stray "7" in the first line way off screen to the right. Must have accidentally hit a key without realizing it or pasted where there was already a character.

Not monumental, but might help someone else save some hair.
Bo

grounded
- 9th July 2010, 14:00
been there done that
enough that I look that 1st. thing LOL

picster
- 9th July 2010, 16:28
Not being accustomed to using DTinterrupts, one had me stymied. I kept going through my main code step by step, and everything SHOULD have worked as planned. Finally I realized that stepping through code doesn't INCLUDE interrupt service routines.

Major duh moment.