View Single Post
  #1   Spotlight this post!  
Unread 26-01-2008, 11:27
ebowla's Avatar
ebowla ebowla is offline
The Overmind
FRC #2016
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Ewing High School
Posts: 15
ebowla is on a distinguished road
Suspicious pointer conversion

Ive tried looking the answer up in several places and I can't seem to solve it.

Code:
unsigned int analog=(unsigned int)Get_Analog_Value(rc_ana_in01);
printf(analog);
I get an error pointing to the printf statement saying suspicious pointer conversion. The analog imput is a potentiometer. As far as I know everything is wired correctly, the code even compiles and runs, but the printf isnt displaying.

PROBLEM SOLVED CLOSE THREAD/NO MORE POSTS
__________________
Progamming Master
Disclaimer: May not be actually as good as claimed, not reliable for advice, and shirks away any real work.

Last edited by ebowla : 26-01-2008 at 12:13.