Merge pull request #1640 from AnHardt/warning6
codepos not used in gcode_M28()
This commit is contained in:
		@@ -2562,13 +2562,13 @@ inline void gcode_M17() {
 | 
				
			|||||||
   */
 | 
					   */
 | 
				
			||||||
  inline void gcode_M28() {
 | 
					  inline void gcode_M28() {
 | 
				
			||||||
    char* codepos = strchr_pointer + 4;
 | 
					    char* codepos = strchr_pointer + 4;
 | 
				
			||||||
    char* starpos = strchr(strchr_pointer + 4, '*');
 | 
					    char* starpos = strchr(codepos, '*');
 | 
				
			||||||
    if (starpos) {
 | 
					    if (starpos) {
 | 
				
			||||||
      char* npos = strchr(cmdbuffer[bufindr], 'N');
 | 
					      char* npos = strchr(cmdbuffer[bufindr], 'N');
 | 
				
			||||||
      strchr_pointer = strchr(npos, ' ') + 1;
 | 
					      strchr_pointer = strchr(npos, ' ') + 1;
 | 
				
			||||||
      *(starpos) = '\0';
 | 
					      *(starpos) = '\0';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    card.openFile(strchr_pointer + 4, false);
 | 
					    card.openFile(codepos, false);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  /**
 | 
					  /**
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user