Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a default value for displaying max_accel_to_decel #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
self.sendGCode('SET_GCODE_OFFSET Z=%s MOVE=1' % offset)