Use max limit when current extruder is unknown

This commit is contained in:
Noisyfox
2026-06-25 11:25:17 +08:00
parent 1ab34a7454
commit b7240ab1c6
2 changed files with 5 additions and 5 deletions

View File

@@ -493,10 +493,8 @@ TEST_CASE("Machine envelope emits max limit among used extruders", "[PrintGCode]
THEN("M205 contains max jerk values") {
REQUIRE(gcode.find("M205 X12.00 Y13.00 Z0.60 E10.00") != std::string::npos);
}
THEN("M205 J is clamped to m_max_junction_deviation (values.front())") {
// MAX_LIMIT returns 0.05, but set_junction_deviation clamps to
// m_max_junction_deviation which is set from values.front() (0.02).
REQUIRE(gcode.find("M205 J0.020") != std::string::npos);
THEN("M205 contains max m_max_junction_deviation ") {
REQUIRE(gcode.find("M205 J0.050") != std::string::npos);
}
}
}