View Single Post
  #1   Spotlight this post!  
Unread 15-02-2005, 20:51
steven114 steven114 is offline
Programming Wizard and Team Captain
AKA: Steven Schlansker
FRC #0114 (Eaglestrike)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Los Altos, CA
Posts: 335
steven114 is a jewel in the roughsteven114 is a jewel in the roughsteven114 is a jewel in the rough
Send a message via AIM to steven114
Printf acting flaky

I'm having a few issues with calling printf - it sometimes leaves the format string (like %d) in the output. Something like this:

joyx = 127
joyx = 127
joyx = 127
joyx = %d
joyx = 127
etc...

It seems to be random.

Also, it doesn't seem to like to have information pushed at it multiple times through the main loop. Even though I push a \r\n at it (although the same thing happens with either \r or \n) it overwrites the last bit of output. Is there a buffer or something that can hold a limited amount of data? I never experienced any problems like this last year - did something change? I'm sorry if this seems like a trivial problem - but it's driving me absolutely insane.
__________________
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!