Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BFW-5432] gcode: Add mk3 compatibility to G90 command #3865

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

bkerler
Copy link
Contributor

@bkerler bkerler commented Mar 29, 2024

This addresses issue #3847.

When in mk3 compatibility mode, the G90 command should behave exactly as in https://github.com/prusa3d/Prusa-Firmware/blob/MK3/Firmware/Marlin_main.cpp#L5120.

However the MK4 normally does also set absolute values for the E-Axis, which the MK3 didn't do before (which is also documented), as you can see here:
https://github.com/prusa3d/Prusa-Firmware-Buddy/blob/master/lib/Marlin/Marlin/src/gcode/gcode.h#L314

This PR adds further support for the MK3 compatibility mode by removing setting absolute values for the E-Axis for gcode G90.

@danopernis
Copy link
Member

This mixes actual code changes with formatting changes and is quite difficult to review. It sill also be more difficult to merge. Can you please rework this so the change is minimal?

@bkerler
Copy link
Contributor Author

bkerler commented Apr 29, 2024

@danopernis Sorry, seems like clang-format automatically changed the whole file. It's now modded to only reflect the change.

@danopernis danopernis force-pushed the g90_mk3_compat branch 2 times, most recently from 3093263 to c2bb480 Compare April 29, 2024 13:38
Copy link
Member

@danopernis danopernis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BFW-5432 for internal reference

@danopernis danopernis merged commit f691187 into prusa3d:master Apr 29, 2024
1 check passed
@danopernis danopernis changed the title gcode: Add mk3 compatibility to G90 command [BFW-5432] gcode: Add mk3 compatibility to G90 command Apr 30, 2024
@bkerler bkerler deleted the g90_mk3_compat branch September 3, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants