Gotchas: A problem that caught me


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231

    Default Gotchas: A problem that caught me

    HI all,

    Ran into one that stumped me for a while (not like that is so unusual)
    The code snippet looked something like this:
    Code:
          
          for CounterB=0 to 31                                                                                                                                 7
          hserin [ByteData[CounterB]]
          next CounterB
    Code:
          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
    Last edited by boroko; - 9th July 2010 at 10:28.

  2. #2
    Join Date
    Aug 2005
    Location
    down south
    Posts
    90


    Did you find this post helpful? Yes | No

    Smile

    been there done that
    enough that I look that 1st. thing LOL
    " be nice it's people like me that make people like you look smart"
    yes I read the datasheet, of the 300 pages I understood 10

  3. #3


    Did you find this post helpful? Yes | No

    Default Another Gotcha

    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.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts