View Single Post
  #2   Spotlight this post!  
Unread 07-01-2009, 17:33
OScubed's Avatar
OScubed OScubed is offline
Lee Drake, CEO, OS-Cubed Inc.
AKA: Lee Drake
FRC #1511 (Rolling Thunder)
Team Role: Parent
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Rochester, NY
Posts: 156
OScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond repute
Send a message via ICQ to OScubed Send a message via AIM to OScubed Send a message via MSN to OScubed
Re: Help with Timers on PIC18F in C18 (what the 2004-2008 RCs had)

Are you sure oldManualUp is intialized? Did you check for nulls? Neither will be true if oldManualUp is uninitialized. sManualUp must be initialized since evaluating it to zero works. Remember that:

variable == Value (any value in cluding zero) will only work if variable is intialized to a value and is non-null.
__________________
Lee Drake, CEO, OS-Cubed, Inc.
Business Mentor - team 1511
Rochester, NY

Building optimal, stable, secure solutions to your business challenges.