dont flush presort at the beginning of the print

This commit is contained in:
PavelSindler 2017-11-01 14:18:39 +01:00
parent 3ec227c02e
commit 6c8f304809
2 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,7 @@ void CardReader::startFileprint()
{ {
sdprinting = true; sdprinting = true;
#ifdef SDCARD_SORT_ALPHA #ifdef SDCARD_SORT_ALPHA
flush_presort(); // flush_presort();
#endif #endif
} }
} }
@ -1047,7 +1047,7 @@ void CardReader::printingHasFinished()
} }
autotempShutdown(); autotempShutdown();
#ifdef SDCARD_SORT_ALPHA #ifdef SDCARD_SORT_ALPHA
presort(); //if(!check_file) presort();
#endif #endif
} }
} }

View File

@ -4959,9 +4959,9 @@ void lcd_sdcard_menu()
uint8_t sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT); uint8_t sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT);
if (presort_flag == true) { if (presort_flag == true) {
presort_flag = false; presort_flag = false;
card.presort(); card.presort();
} }
if (lcdDrawUpdate == 0 && LCD_CLICKED == 0) if (lcdDrawUpdate == 0 && LCD_CLICKED == 0)
//delay(100); //delay(100);
return; // nothing to do (so don't thrash the SD card) return; // nothing to do (so don't thrash the SD card)