Browse Source

dont flush presort at the beginning of the print

PavelSindler 7 years ago
parent
commit
6c8f304809
2 changed files with 4 additions and 4 deletions
  1. 2 2
      Firmware/cardreader.cpp
  2. 2 2
      Firmware/ultralcd.cpp

+ 2 - 2
Firmware/cardreader.cpp

@@ -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
     }
     }
 }
 }

+ 2 - 2
Firmware/ultralcd.cpp

@@ -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)