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

Thanks Chuck Hellebuyck.
This commit is contained in:
Scott Lahteine 2018-03-07 01:42:30 -06:00 committed by GitHub
parent 1ed1882766
commit 1f77930e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 9 deletions

View file

@ -225,7 +225,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();