fans: fix for machines without [fan]
This commit is contained in:
parent
228994b2f2
commit
c763bd5a5b
@ -217,7 +217,9 @@ class Printer:
|
||||
return self.data
|
||||
|
||||
def get_fans(self):
|
||||
fans = ["fan"] if len(self.get_config_section_list("fan")) > 0 else []
|
||||
fans = []
|
||||
if self.config_section_exists("fan"):
|
||||
fans.append("fan")
|
||||
fan_types = ["controller_fan", "fan_generic", "heater_fan"]
|
||||
for type in fan_types:
|
||||
for f in self.get_config_section_list("%s " % type):
|
||||
|
Loading…
x
Reference in New Issue
Block a user