pins: assign initial value if configured fix #689
This commit is contained in:
parent
207914a5b5
commit
e332ccc22a
@ -316,7 +316,11 @@ class Printer:
|
|||||||
return speed
|
return speed
|
||||||
|
|
||||||
def get_pin_value(self, pin):
|
def get_pin_value(self, pin):
|
||||||
return self.data[pin]["value"] if pin in self.data else 0
|
if pin in self.data:
|
||||||
|
return self.data[pin]["value"]
|
||||||
|
elif pin in self.config and 'value' in self.config[pin]:
|
||||||
|
return self.config[pin]["value"]
|
||||||
|
return 0
|
||||||
|
|
||||||
def get_extruder_count(self):
|
def get_extruder_count(self):
|
||||||
return self.extrudercount
|
return self.extrudercount
|
||||||
|
Loading…
x
Reference in New Issue
Block a user