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

Add klipper support for changing filament #1359

Merged

Conversation

DS-Ale
Copy link
Contributor

@DS-Ale DS-Ale commented Jan 30, 2021

Hi, it's a simple implementation to allow custom gcode to disable the extruder. Using Klipper, M18 would disable all steppers, ignoring arguments.
At first I had added a "klipper support" checkbox into Settings, however I then chose to implement it just like the babystepping option, for the sake of consistency and flexibility. So I added a 'disableExtruderGCode' key, changable in the config.json (default value is 'M18 E'). For Klipper I use "SET_STEPPER_ENABLE STEPPER=extruder ENABLE=0", I can confirm it works (tried @Pause and M0/M1).

Just a note. I had to downgrade electron-store to 6 (can't read config.json otherwise) and electron to 9 ("tilted" display otherwise) to get interface working (even before my changes, on clean setup). Of course I reverted dependencies to original values before commit. I don't know if these are known issues or I did something wrong.
This is my first PR too, hope I did everything right.

@UnchartedBull
Copy link
Owner

The versions are currently a known issue unfortunately. PR looks good from my side, only config update is missing, but I can fix those. Thanks for the changes!

@UnchartedBull UnchartedBull merged commit 201e8dc into UnchartedBull:main Feb 4, 2021
kantlivelong pushed a commit to kantlivelong/OctoDash that referenced this pull request May 5, 2021
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.

None yet

2 participants