Fix UBL compilation warnings

This commit is contained in:
Thomas Moore
2018-01-02 21:00:06 -06:00
parent d80c4f1a6e
commit 8afc4f8d9d
6 changed files with 59 additions and 17 deletions

View File

@ -287,7 +287,7 @@ void CardReader::openAndPrintFile(const char *name) {
char cmd[4 + strlen(name) + 1]; // Room for "M23 ", filename, and null
sprintf_P(cmd, PSTR("M23 %s"), name);
for (char *c = &cmd[4]; *c; c++) *c = tolower(*c);
enqueue_and_echo_command(cmd);
enqueue_and_echo_command_now(cmd);
enqueue_and_echo_commands_P(PSTR("M24"));
}