Restore print fan speed earlier then nozzle temperature.

Avoids nozzle temperature dip when fan is turned on.
This commit is contained in:
Marek Bel 2019-07-15 16:23:16 +02:00
parent a38f37aa06
commit 549a8a1a6b
1 changed files with 6 additions and 5 deletions

View File

@ -9456,10 +9456,11 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
//! @brief Restore print from ram //! @brief Restore print from ram
//! //!
//! Restore print saved by stop_and_save_print_to_ram(). Is blocking, //! Restore print saved by stop_and_save_print_to_ram(). Is blocking, restores
//! waits for extruder temperature restore, then restores position and continues //! print fan speed, waits for extruder temperature restore, then restores
//! print moves. //! position and continues print moves.
//! Internaly lcd_update() is called by wait_for_heater(). //!
//! Internally lcd_update() is called by wait_for_heater().
//! //!
//! @param e_move //! @param e_move
void restore_print_from_ram_and_continue(float e_move) void restore_print_from_ram_and_continue(float e_move)
@ -9474,6 +9475,7 @@ void restore_print_from_ram_and_continue(float e_move)
// for (int axis = X_AXIS; axis <= E_AXIS; axis++) // for (int axis = X_AXIS; axis <= E_AXIS; axis++)
// current_position[axis] = st_get_position_mm(axis); // current_position[axis] = st_get_position_mm(axis);
active_extruder = saved_active_extruder; //restore active_extruder active_extruder = saved_active_extruder; //restore active_extruder
fanSpeed = saved_fanSpeed;
if (saved_extruder_temperature) { if (saved_extruder_temperature) {
setTargetHotendSafe(saved_extruder_temperature, saved_active_extruder); setTargetHotendSafe(saved_extruder_temperature, saved_active_extruder);
heating_status = 1; heating_status = 1;
@ -9482,7 +9484,6 @@ void restore_print_from_ram_and_continue(float e_move)
} }
feedrate = saved_feedrate2; //restore feedrate feedrate = saved_feedrate2; //restore feedrate
axis_relative_modes[E_AXIS] = saved_extruder_relative_mode; axis_relative_modes[E_AXIS] = saved_extruder_relative_mode;
fanSpeed = saved_fanSpeed;
float e = saved_pos[E_AXIS] - e_move; float e = saved_pos[E_AXIS] - e_move;
plan_set_e_position(e); plan_set_e_position(e);
//first move print head in XY to the saved position: //first move print head in XY to the saved position: