Rebuild SD file sort array on Stop SD Print (#9976)

Thanks Chuck Hellebuyck.
This commit is contained in:
Scott Lahteine
2018-03-07 01:42:11 -06:00
committed by GitHub
parent 920d92aa46
commit 22a017a856
4 changed files with 38 additions and 14 deletions

View File

@ -228,7 +228,11 @@ void process_lcd_p_command(const char* command) {
case 'X':
// cancel print
write_to_lcd_P(PSTR("{SYS:CANCELING}"));
card.stopSDPrint();
card.stopSDPrint(
#if SD_RESORT
true
#endif
);
clear_command_queue();
quickstop_stepper();
print_job_timer.stop();
@ -448,4 +452,4 @@ void lcd_setalertstatusPGM(const char* message) {
write_to_lcd(message_buffer);
}
#endif // Malyan LCD
#endif // MALYAN_LCD

View File

@ -856,7 +856,11 @@ void kill_screen(const char* lcd_msg) {
}
void lcd_sdcard_stop() {
card.stopSDPrint();
card.stopSDPrint(
#if SD_RESORT
true
#endif
);
clear_command_queue();
quickstop_stepper();
print_job_timer.stop();