Skip to content

Commit

Permalink
Fix end of meander overextrusion with new pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
leptun committed Nov 20, 2024
1 parent 24ce71e commit 7a47bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Firmware/first_lay_cal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ void lay1cal_meander(float layer_height, float extrusion_width)
enquecommandf_P(extrude_fmt_Y, invert * -short_length, short_extrusion);
}
#ifdef NEW_FIRST_LAYER_CAL
enquecommandf_P(extrude_fmt_X, -(long_length/2-square_width/2), long_extrusion); //~Middle of bed X125
constexpr float mid_length = 0.5f * long_length - 0.5f * square_width;
const float mid_extrusion = count_e(layer_height, extrusion_width, mid_length);
enquecommandf_P(extrude_fmt_X, -mid_length, mid_extrusion); //~Middle of bed X125
enquecommandf_P(extrude_fmt_Y, short_length, short_extrusion); //~Middle of bed Y105
#endif //NEW_FIRST_LAYER_CAL

Expand Down

0 comments on commit 7a47bf3

Please sign in to comment.