Altera_Forum
Honored Contributor
15 years agoProblem with reading from Uart
I am getting the following warnings when I build my project
passing arg 1 of `fgets' from incompatible pointer type passing arg 1 of `fgets' makes pointer from integer without a cast The call to fgets is as follows... fgets( Sonar_Height , 4 , fp_uart); Sonar_Height is declared as a character array of size 3 char* Sonar_Height [3] fp_uart is the name of the file pointer to my uart Also i am getting the following warning char format, pointer arg (arg 2) Call to printf is as follows... printf( "Initial Sonar Height: %s\n" , Sonar_Height); Sonar_Height is the same variable as in fgets call. What do these warnings mean? Could they be the reason my read attempts from uart fail? Any assistance will be appreciated Chase