Parcourir la source

reset cmdqueue in the end of test if file is complete, no sorting in the end of print

PavelSindler il y a 7 ans
Parent
commit
56d38a8a10
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      Firmware/cardreader.cpp
  2. 1 0
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/cardreader.cpp

@@ -1053,7 +1053,7 @@ void CardReader::printingHasFinished()
       }
       autotempShutdown();
 	  #ifdef SDCARD_SORT_ALPHA
-		presort();
+		//presort();
 	  #endif
     }
 }

+ 1 - 0
Firmware/ultralcd.cpp

@@ -5773,6 +5773,7 @@ static bool check_file(const char* filename) {
 		get_command();
 		result = check_commands();
 	}
+	cmdqueue_reset();
 	card.printingHasFinished();
 	strncpy_P(lcd_status_message, WELCOME_MSG, LCD_WIDTH);
 	return result;