diff --git a/README.md b/README.md index 839047880..feabf913b 100644 --- a/README.md +++ b/README.md @@ -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): diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index 9d08960b9..21ef49d07 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -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. ``` diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py index cc978c3e9..59fa6e649 100644 --- a/klippy/extras/heaters.py +++ b/klippy/extras/heaters.py @@ -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 )