Explorar o código

Unload filament after MMU load failed so MMU unit can be controlled by its buttons.

Marek Bel %!s(int64=6) %!d(string=hai) anos
pai
achega
d33b24c281
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Firmware/mmu.cpp

+ 4 - 1
Firmware/mmu.cpp

@@ -1394,7 +1394,10 @@ void mmu_continue_loading()
 			current_position[Y_AXIS] = Y_PAUSE_POS;
 			plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 50, active_extruder);
 			st_synchronize();
-			//set nozzle target temperature to 0
+
+			mmu_command(MMU_CMD_U0);
+			manage_response(false, true, MMU_UNLOAD_MOVE);
+
 			setAllTargetHotends(0);
 			lcd_setstatuspgm(_i("MMU load failed     "));////MSG_RECOVERING_PRINT c=20 r=1
 			mmu_fil_loaded = false; //so we can retry same T-code again