View Single Post
  #2   Spotlight this post!  
Unread 10-03-2004, 16:29
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Getting Long Data

Quote:
Originally Posted by Astronouth7303
How do you get a Long (signed or not) from the FRC to you?

I'm currently using printf() in a way so that, basically:
{snip}
The problem is that the thing seems to want to increment higher sections to soon. In a pattern.
The problem is that you're printing out each byte of the long as a base-10 number. Try using %x instead of %d. That way, you'll get the right numbers out, but they'll be in hex. If you want it in decimal, your best bet is to modify printf_lib.c (specifically the printi function) to accept long arguments.