Forum Discussion
Altera_Forum
Honored Contributor
16 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 ...
Altera_Forum
Honored Contributor
16 years agoHi Chase,
fgets requires a char* (pointer to char) as first parameter. Your Sonar_Height variable is a char** (pointer to a pointer to char). In order to have a 3 char array you must change to: char Sonar_Height [3];