Hello
Anybody can help with?!
This is a part of my code
// Mode
tempflag = 0;
for (cnt3 = 0; cnt3 < 4; cnt3++)
{
if (strcmp(compare1[cnt3], appUartData.readString,9) == 0)
{
tempflag = 1;
switch ( cnt3 )
{
case 0:
{
appUartData.ModeAtflag=0;
SerialMon.println(" AT comands Disabled! ");
break;
}
case 1:
{
appUartData.ModeAtflag=1;
SerialMon.println(" AT comands Enabled! ");
break;
}
case 2:
{
appUartData.ModeAiflag=0;
SerialMon.println(" AIO comands Disabled! ");
break;
}
case 3:
{
appUartData.ModeDiflag=0;
SerialMon.println(" DIO comands Disabled! ");
break;
}
}
}
}
I got an error to define the compare 1!!!!!!
and that is defined as
char compare1[4] = { 'Mode at=0' ,'Mode at=1' , 'Mode ai=0' , 'Mode di=0'};
can anybody please help me to solve the problem?
thank you