mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-05 14:27:45 -07:00
output_pin: Fix handling of template rendering errors
Make sure to assign 'value' on a rendering error to avoid an internal error. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
310747a636
commit
59ebdce605
1 changed files with 1 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ class PrinterOutputPin:
|
|||
value = float(text)
|
||||
except ValueError as e:
|
||||
logging.exception("output_pin template render error")
|
||||
value = 0.
|
||||
self.gcrq.send_async_request(value)
|
||||
cmd_SET_PIN_help = "Set the value of an output pin"
|
||||
def cmd_SET_PIN(self, gcmd):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue