Use card.stopSDPrint() for completeness
This commit is contained in:
		@@ -358,8 +358,7 @@ void Endstops::event_handler() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) && ENABLED(SDSUPPORT)
 | 
					    #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED) && ENABLED(SDSUPPORT)
 | 
				
			||||||
      if (planner.abort_on_endstop_hit) {
 | 
					      if (planner.abort_on_endstop_hit) {
 | 
				
			||||||
        card.sdprinting = false;
 | 
					        card.stopSDPrint();
 | 
				
			||||||
        card.closefile();
 | 
					 | 
				
			||||||
        quickstop_stepper();
 | 
					        quickstop_stepper();
 | 
				
			||||||
        thermalManager.disable_all_heaters();
 | 
					        thermalManager.disable_all_heaters();
 | 
				
			||||||
        print_job_timer.stop();
 | 
					        print_job_timer.stop();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -326,7 +326,7 @@ void CardReader::initsd() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void CardReader::release() {
 | 
					void CardReader::release() {
 | 
				
			||||||
  sdprinting = false;
 | 
					  stopSDPrint();
 | 
				
			||||||
  cardOK = false;
 | 
					  cardOK = false;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -947,7 +947,7 @@ void CardReader::printingHasFinished() {
 | 
				
			|||||||
    startFileprint();
 | 
					    startFileprint();
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  else {
 | 
					  else {
 | 
				
			||||||
    sdprinting = false;
 | 
					    stopSDPrint();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #if ENABLED(POWER_LOSS_RECOVERY)
 | 
					    #if ENABLED(POWER_LOSS_RECOVERY)
 | 
				
			||||||
      removeJobRecoveryFile();
 | 
					      removeJobRecoveryFile();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user