Jelajahi Sumber

Move string to progmem

flash: -52
RAM: -6
Alex Voinea 2 tahun lalu
induk
melakukan
4ded6f195e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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,