Ivan-Holm
Member level 5
why can't I write
I get two warnings
init.c:61: warning: (355) implicit signed to unsigned conversion
init.c:70: warning: (343) implicit return at end of non-void function
the first is I use int and size-of data type I think.
the second is no return type or wrong return type,
have any suggestions ?
I use the free xc8 compiler on pic18f242
Code:
char Dispwrite( )
{
LCD_Text;
for(int i = 0; i <= sizeof(lcdtext)-2; i++ )
{
LCD_E_ON;
forsin(); //delay
LCD_Data = lcdtext[i];
forsin(); //delay
LCD_E_OFF;
forsin(); //delay
}
}
init.c:61: warning: (355) implicit signed to unsigned conversion
init.c:70: warning: (343) implicit return at end of non-void function
the first is I use int and size-of data type I think.
the second is no return type or wrong return type,
have any suggestions ?
I use the free xc8 compiler on pic18f242
Last edited: