Skip to content

Commit

Permalink
fixed docs, readme and hassattr
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeanon committed Dec 23, 2024
1 parent 2551506 commit d5f0da8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ 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)
- [heater: disable if specified mcu is connected](https://github.com/DangerKlippers/danger-klipper/pull/425)

If you're feeling adventurous, take a peek at the extra features in the bleeding-edge-v2 branch [feature documentation](docs/Bleeding_Edge.md)
and [feature configuration reference](docs/Config_Reference_Bleeding_Edge.md):
Expand Down
2 changes: 1 addition & 1 deletion docs/Config_Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ per_move_pressure_advance: False
# 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
# List of mcus that should disable the heater if connected, useful for nozzle adxls
# as to not accidentally fry them due to heating the hotend.
```

Expand Down
7 changes: 3 additions & 4 deletions klippy/extras/heaters.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ def __init__(self, config, sensor):
)
self.can_extrude = self.min_extrude_temp <= 0.0 or is_fileoutput
self.disable_if_connected = []
if hasattr(config, "getlist"):
self.disable_if_connected = config.getlist(
"disable_if_connected", self.disable_if_connected
)
self.disable_if_connected = config.getlist(
"disable_if_connected", self.disable_if_connected
)
self.max_power = config.getfloat(
"max_power", 1.0, above=0.0, maxval=1.0
)
Expand Down

0 comments on commit d5f0da8

Please sign in to comment.