fix(extruderPanel): Modified ExtruderControlPanelControl to use _CLIENT_EXTRUDE and _CLIENT_RETRACT for correct extrusion mode after operation #1964
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR changes the way how Extruder Control Panel sends motion requests to the extruder.
Originally, when pressing EXTRUDE, the panel would send out this command:
RETRACT command:
This puts the extruder movements into Relative mode and stays like that until
M82
is emmited, resulting in unwanted behavior if using Absolute mode otherwise.My Pull Request replaces that EXTRUDE command with:
...and RETRACT command with:
By utilizing
_CLIENT_EXTRUDE
and_CLIENT_RETRACT
defined inmainsail.cfg
, we address the issue of movement modes, as these macros take care of retaining the same movement mode, and as a bonus it also handles firmware retract and cold extrusion protection.Related Tickets & Documents
none
Mobile & Desktop Screenshots/Recordings
Before:
After:
(
PROBE_EXTRUSION
checks whether Absolute mode is present)[optional] Are there any post-deployment tasks we need to perform?
none
Signed-off-by: Marek Rozemberg [email protected]