removed redundant code

This commit is contained in:
PavelSindler 2017-07-21 17:39:36 +02:00
parent b3ff1fd947
commit 6bbbf3f88e
1 changed files with 1 additions and 2 deletions

View File

@ -1394,8 +1394,7 @@ void get_command()
}
cmdbuffer[bufindw+serial_count+1] = 0; //terminate string
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)
{
// Line number met. When sending a G-code over a serial line, each line may be stamped with its index,