I'm was using this function in Arduino to pad out a string to 40 characters (the width of my LCD), so that in the process of writing it it clears any characters left behind from the last write.
Problem is when I use it, it stops my RF24 module from being able to send...(everything else still runs, and it recieves) weird I know...
void printLine(char* line){ sprintf(line, "%-40s", line); lcd.writeString(line); } It was pointed out that should not write into line from line, i corrected this, but same problem. This function also has the same problem:
void emptyLine(){ sprintf(line, "%-40s", ""); lcd.writeString(line); } And here is declaration of 'line' (from top of code)
char line[lcdCols];
blankdefined? What islcd.writeString()?