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

Adding a default value for displaying max_accel_to_decel #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Joldiges
Copy link

@Joldiges Joldiges commented May 1, 2024

max_accel_to_decel is being deprecated from Klipper and is being included in fewer and fewer default printer.cfg's accordingly.

The proposed is a hot-fix to allow KlipperLCD to run on machines without max_accel_to_decel in the config.

The implemented uses the get function of the dictionary type so that a default value can be retrieved if it doesn't exist within the dict.

(image of KlipperLCD crashing, without the changes)
image

(adding a pic of the code, I don't know why :) )
For Some Reason, I'm adding a picture of my code too

(image showing KlipperLCD not crashing)
image

[max_accel_to_decel](https://www.klipper3d.org/Config_Changes.html) is being deprecated from Klipper and is being included in fewer and fewer default printer.cfg's accordingly.

The proposed is a _quick-fix_ to allow KlipperLCD to run on machines without max_accel_to_decel in the config.
@SWRJEEDOM
Copy link

Great, it works perfectly

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