ENH: remove a assert which is wrong

This is a wrong assert code!

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Iec33e0ab456f0e726b1c3e87c30cb2649a55b39d
This commit is contained in:
salt.wei 2022-11-29 11:54:06 +08:00 committed by Lane.Wei
parent 416e100b1d
commit ce2d2defc0
1 changed files with 0 additions and 1 deletions

View File

@ -3965,7 +3965,6 @@ std::string GCode::set_extruder(unsigned int extruder_id, double print_z)
std::vector<float> flush_matrix(cast<float>(m_config.flush_volumes_matrix.values));
const unsigned int number_of_extruders = (unsigned int)(sqrt(flush_matrix.size()) + EPSILON);
assert(m_writer.extruder()->id() < number_of_extruders);
assert(new_retract_length < number_of_extruders);
int previous_extruder_id = m_writer.extruder()->id();
old_retract_length = m_config.retraction_length.get_at(previous_extruder_id);