diff --git a/printer.py b/printer.py index cfbf0bb..96f6277 100644 --- a/printer.py +++ b/printer.py @@ -436,7 +436,7 @@ def init_Webservices(self): self.Y_MAX_POS = int(volume[1]) self.max_velocity = toolhead['max_velocity'] self.max_accel = toolhead['max_accel'] - self.max_accel_to_decel = toolhead['max_accel_to_decel'] + self.max_accel_to_decel = toolhead.get('max_accel_to_decel', -1) self.square_corner_velocity = toolhead['square_corner_velocity'] def get_gcode_store(self, count=100): @@ -668,4 +668,4 @@ def preHeat(self, bedtemp, exttemp, toolnum=0): self.setExtTemp(exttemp) def setZOffset(self, offset): - self.sendGCode('SET_GCODE_OFFSET Z=%s MOVE=1' % offset) \ No newline at end of file + self.sendGCode('SET_GCODE_OFFSET Z=%s MOVE=1' % offset)