Browse Source

removed redundant code

PavelSindler 7 years ago
parent
commit
6bbbf3f88e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Firmware/Marlin_main.cpp

+ 1 - 2
Firmware/Marlin_main.cpp

@@ -1394,8 +1394,7 @@ void get_command()
       }
       }
       cmdbuffer[bufindw+serial_count+1] = 0; //terminate string
       cmdbuffer[bufindw+serial_count+1] = 0; //terminate string
       if(!comment_mode){
       if(!comment_mode){
-		comment_mode = false; //for new command
-        if ((strchr_pointer = strstr(cmdbuffer+bufindw+1, "PRUSA")) == NULL && (strchr_pointer = strchr(cmdbuffer+bufindw+1, 'N')) != NULL) {
+		if ((strchr_pointer = strstr(cmdbuffer+bufindw+1, "PRUSA")) == NULL && (strchr_pointer = strchr(cmdbuffer+bufindw+1, 'N')) != NULL) {
             if ((strchr_pointer = strchr(cmdbuffer+bufindw+1, 'N')) != NULL)
             if ((strchr_pointer = strchr(cmdbuffer+bufindw+1, 'N')) != NULL)
             {
             {
             // Line number met. When sending a G-code over a serial line, each line may be stamped with its index,
             // Line number met. When sending a G-code over a serial line, each line may be stamped with its index,