Move string to progmem

flash: -52
RAM: -6
This commit is contained in:
Alex Voinea 2022-08-26 18:55:20 +03:00
parent 2b2b499063
commit 4ded6f195e
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ void get_command()
// Line numbers must be first in buffer
if ((strstr(cmdbuffer+bufindw+CMDHDRSIZE, "PRUSA") == NULL) &&
if ((strstr_P(cmdbuffer+bufindw+CMDHDRSIZE, PSTR("PRUSA")) == NULL) &&
(cmdbuffer[bufindw+CMDHDRSIZE] == 'N')) {
// Line number met. When sending a G-code over a serial line, each line may be stamped with its index,