FIX: G1 F0 in gcode

jira: 7631
Change-Id: I5060efef30f3e9250188b0dc4ee1d9ee6058af69
This commit is contained in:
zhimin.zeng 2024-08-15 13:08:14 +08:00 committed by Lane.Wei
parent 32b3e78b5d
commit c24cf8ef60
1 changed files with 6 additions and 5 deletions

View File

@ -295,7 +295,8 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
/* Reduce feedrate a bit; travel speed is often too high to move on existing material.
Too fast = ripping of existing material; too slow = short wipe path, thus more blob. */
//OrcaSlicer
double wipe_speed = gcodegen.config().role_base_wipe_speed ? gcodegen.writer().get_current_speed() / 60 :
double cur_speed = gcodegen.writer().get_current_speed();
double wipe_speed = gcodegen.config().role_base_wipe_speed && cur_speed > EPSILON ? cur_speed / 60 :
gcodegen.writer().config.travel_speed.value * gcodegen.config().wipe_speed.value / 100;