Okada
Banned
Why this works in Arduino (C++) but not in C (mikroC) ?
The strlen(msg) doesn't return string length in mikroC.
Code:
void writeDisplay(char* msg)
{
for (byte i=0; i < NUM_DISPLAYS; i++)
{
if (i < strlen(msg))
writeMAX6955(0x25-i, msg[i]);
else
writeMAX6955(0x25-i, ' ');
}
}
The strlen(msg) doesn't return string length in mikroC.