浏览代码

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

PavelSindler 7 年之前
父节点
当前提交
56d38a8a10
共有 2 个文件被更改,包括 2 次插入1 次删除
  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;