瀏覽代碼

Move string to progmem

flash: -52
RAM: -6
Alex Voinea 2 年之前
父節點
當前提交
4ded6f195e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Firmware/cmdqueue.cpp

+ 1 - 1
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,