-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
disable heaters if a specified mcu is connected #425
base: main
Are you sure you want to change the base?
Conversation
README.md
Outdated
@@ -126,6 +126,8 @@ See the [Danger Features document](https://dangerklipper.io/Danger_Features.html | |||
|
|||
- [danger_options: configurable homing constants](https://github.com/DangerKlippers/danger-klipper/pull/378) | |||
|
|||
- [adxl: disable heaters when connected](https://github.com/DangerKlippers/danger-klipper/pull/425) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the message needs improving
docs/Config_Reference.md
Outdated
@@ -1091,7 +1091,9 @@ per_move_pressure_advance: False | |||
# If true, uses pressure advance constant from trapq when processing moves | |||
# This causes changes to pressure advance be taken into account immediately, | |||
# for all moves in the current queue, rather than ~250ms later once the queue gets flushed | |||
|
|||
#disable_if_connected: | |||
# List of mcus that should disable the heater if connected, usefull for nozzle adxls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in useful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops
klippy/extras/heaters.py
Outdated
@@ -61,6 +61,11 @@ def __init__(self, config, sensor): | |||
self.printer.get_start_args().get("debugoutput") is not None | |||
) | |||
self.can_extrude = self.min_extrude_temp <= 0.0 or is_fileoutput | |||
self.disable_if_connected = [] | |||
if hasattr(config, "getlist"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the hasattr()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cause some dummy configs don't have that attribute and I ran into issues without it in the older version
Probably not needed anymore since we are now checking in heaters and not adxl
Fixes #424
Checklist