Fixed a regression issue that wrong accel was used for PA Line

This commit is contained in:
SoftFever 2023-12-10 21:21:12 +08:00
parent 9e10266646
commit e70da30753
2 changed files with 8 additions and 8 deletions

View file

@ -498,8 +498,8 @@ std::string CalibPressureAdvanceLine::print_pa_lines(double start_x, double star
DrawBoxOptArgs default_box_opt_args(2, m_height_layer, 0.6, fast);
default_box_opt_args.is_filled = true;
gcode << draw_box(writer, start_x + m_length_short + m_length_long + m_length_short, start_y-m_space_y, number_spacing() * 8,
num * m_space_y, default_box_opt_args);
gcode << draw_box(writer, start_x + m_length_short + m_length_long + m_length_short, start_y - m_space_y, number_spacing() * 8,
(num + 1) * m_space_y, default_box_opt_args);
gcode << writer.travel_to_z(m_height_layer*2);
for (int i = 0; i < num; i += 2) {
gcode << draw_number(start_x + m_length_short + m_length_long + m_length_short + 3, y_pos + i * m_space_y + m_space_y / 2,