This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HELLO.C(894): warning C40: 'unsigned char' converted to pointer

In the next code I receive the compiler error:

HELLO.C(894): warning C40: 'unsigned char' converted to pointer

My code:

#include <71x_lib.H>

#include <stdio.h>
#include <stdlib.h>
#include <STR710.h>
#include <gdisphw.h> /* LCD prototypes */
#include <gdisp.h>



while (1) {

char str1[7]; /*aanmaak van een string t.b.v. weergeven cyfers op display*************/
int a; /*aanmaak van een lokale variable voor weergeven cyfers op display******/
// Loop forever


if(teller>=100000)
{
sprintf(str1, "\r \n %d", ADCwaarde );

a = atoi (str1[4]);
gputsym( 92, 180,(PGSYMBOL)&cyfer[a]);

if(str1[5] < 48)
{
gputsym( 114, 180,(PGSYMBOL)&cyfer[0]);

a = atoi (str1[4]);
gputsym( 114, 180,(PGSYMBOL)&cyfer[a]);

}
else
{
a = atoi (str1[5]);
gputsym( 114, 180,(PGSYMBOL)&cyfer[a]);
}


I can not find the problem that is the source of the problem.

Regards,

erik

0