Include the wipe tower print time into the cooling time.

Further refactoring of Extruder class.
This commit is contained in:
bubnikv 2017-06-22 15:18:37 +02:00
parent 0454cc95f9
commit 39b9341359
6 changed files with 67 additions and 72 deletions

View file

@ -83,8 +83,8 @@ std::string CoolingBuffer::flush()
fan_speed = config.max_fan_speed.values.front();
// We are not altering speed of bridges.
float time_to_stretch = m_elapsed_time->total - m_elapsed_time->bridges;
float target_time = (float)config.slowdown_below_layer_time.values.front() - m_elapsed_time->bridges;
float time_to_stretch = m_elapsed_time->stretchable();
float target_time = (float)config.slowdown_below_layer_time.values.front() - m_elapsed_time->non_stretchable();
// If we spend most of our time on external perimeters include them in the slowdown,
// otherwise only alter other extrusions.