View Single Post
  #2   Spotlight this post!  
Unread 17-01-2008, 20:52
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: HELP!!! STUCK WITH SUB ROUTINES WITH THE IR!!!

I believe the if statements are your problem. You're only using one equals sign. That will actually assign the bit the '1' rather than checking equivalence. You need to use the == operator instead.