From 4ded6f195e5233479708338b3832615ec6a81dcd Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Fri, 26 Aug 2022 18:55:20 +0300 Subject: [PATCH] Move string to progmem flash: -52 RAM: -6 --- Firmware/cmdqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/cmdqueue.cpp b/Firmware/cmdqueue.cpp index 5ec79ab00..a13b344ad 100755 --- a/Firmware/cmdqueue.cpp +++ b/Firmware/cmdqueue.cpp @@ -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,