Is there another way to do the same avoiding this complaint by the compiler?
Yes. You have a string constant. I'll be you can find it. You are passing that string constant (who's type is const char *) to a function that expects a char *.
- Make the string not const:
char whatToPrint[40];
strcpy(whatToPrint, "NTP Syncronization Success");
and print that:
LogSDCard(whatToPrint,0,26,0);
- Use a cast:
LogSDCard((char *)"NTP Syncronization Success",0,26,0);
- And this is best - Fix your function declaration:
bool LogSDCard(const char *logData, byte Start, byte Len, byte time)