Hi People,
I am trying to use the serial bus to talk to another module, im having difficulty manipulating the serial data coming from the secondary module. Here is the problem i am faced with, appreciate help...
- "Argument of type "char" is incompatible with parameter of type "const char *" (E167)" in file "/main.cpp"
 
- "Operand types are incompatible ("char" and "const char *") (E42)" in file "/main.cpp"
 
while(1)
 {
 testchar[i] = module.getc();
 testint = atoi(testchar[i]);
 pc.printf("%c",testchar[i]);
 
 if (testchar[i] == "0x00");   // <-- 0x00 not definded yet 
 {
 }
 
 i++;
 }
 
Will appreciate any help... teach me the basics please...
                 
             
        
Hi People,
I am trying to use the serial bus to talk to another module, im having difficulty manipulating the serial data coming from the secondary module. Here is the problem i am faced with, appreciate help...
while(1)
{
testchar[i] = module.getc();
testint = atoi(testchar[i]);
pc.printf("%c",testchar[i]);
if (testchar[i] == "0x00"); // <-- 0x00 not definded yet
{
}
i++;
}
Will appreciate any help... teach me the basics please...