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

Remove legacy Auto Bed Leveling code #4749

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

gudnimg
Copy link
Collaborator

@gudnimg gudnimg commented Aug 9, 2024

We discussed removing this code some time ago in 2021 (See #3227) and I want to propose again to remove auto bed leveling. The code has been unmaintained for many years and doesn't compile. This functionality has also not been tested / verified for many years.

The goal is to clean up the project so it's easier to maintain and further improve the project.

Copy link

github-actions bot commented Aug 9, 2024

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG -14 0 248016 5653 5936 2539
MK3_MULTILANG -14 0 247374 5662 6578 2530

if (cs.add_homing[Z_AXIS] < 0) negative_z_offset = negative_z_offset + cs.add_homing[Z_AXIS];
#endif
if (target[Z_AXIS] < min_pos[Z_AXIS]+negative_z_offset) target[Z_AXIS] = min_pos[Z_AXIS]+negative_z_offset;
if (target[Z_AXIS] < min_pos[Z_AXIS]) target[Z_AXIS] = min_pos[Z_AXIS];
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If you're wondering where 14 bytes of flash are saved. It is here, by removing negative_z_offset since it is always 0.

The goal is to clean up the project
Copy link
Collaborator

@leptun leptun left a comment

Choose a reason for hiding this comment

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

Approved, but see some further cleanup I noted above.

Firmware/Configuration.h Outdated Show resolved Hide resolved
Firmware/Marlin_main.cpp Show resolved Hide resolved
@3d-gussner 3d-gussner added this to the FW 3.14.1 milestone Aug 28, 2024
@3d-gussner 3d-gussner merged commit 923f926 into prusa3d:MK3 Aug 30, 2024
4 checks passed
@gudnimg gudnimg deleted the remove-auto-bed-leveling branch August 30, 2024 09:13
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.

3 participants