Fix PARKING_EXTRUDER homing with solenoid (#20473)

This commit is contained in:
zeleps authored and GitHub committed 2021-01-01 14:54:44 -06:00
1 parent c840bbc970
commit 815c636449
5 files changed
+71 -35

No files matched your search

+6 -12
View File
@@ -61,16 +61,10 @@ void GcodeSuite::T(const int8_t tool_index) {
}
#endif
#if EXTRUDERS < 2
tool_change(tool_index);
#else
tool_change(
tool_index,
(tool_index == active_extruder) || parser.boolval('S')
);
#endif
tool_change(tool_index
#if HAS_MULTI_EXTRUDER
, TERN(PARKING_EXTRUDER, false, tool_index == active_extruder) // For PARKING_EXTRUDER motion is decided in tool_change()
|| parser.boolval('S')
#endif
);
}