fix
This commit is contained in:
@ -390,7 +390,8 @@ void oledPrint(char msg[]) {
|
||||
if (currentLine < MAX_LINES) {
|
||||
memset(lines[currentLine], 0, MAX_CHARS);
|
||||
strncpy(lines[currentLine], msg, MAX_CHARS);
|
||||
|
||||
memset(lines[currentLine] + strlen(msg), ' ', MAX_CHARS - strlen(msg) - 1);
|
||||
lines[currentLine][MAX_CHARS - 1] = 0;
|
||||
oled_P6x8Str(1, currentLine, lines[currentLine]);
|
||||
currentLine++;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user