Commit 26c424ab authored by Guillaume Seguin's avatar Guillaume Seguin

Set home_pos from pronsole and factorize build_dimensions handling

parent f39bb963
......@@ -445,7 +445,7 @@ class pronsole(cmd.Cmd):
self.settings._temperature_pla_cb = self.set_temp_preset
self.settings._bedtemp_abs_cb = self.set_temp_preset
self.settings._bedtemp_pla_cb = self.set_temp_preset
self.build_dimensions_list = parse_build_dimensions(self.settings.build_dimensions)
self.update_build_dimensions(None, self.settings.build_dimensions)
self.monitoring = 0
self.starttime = 0
self.extra_print_time = 0
......@@ -1597,6 +1597,7 @@ class pronsole(cmd.Cmd):
def update_build_dimensions(self, param, value):
self.build_dimensions_list = parse_build_dimensions(value)
self.p.analyzer.home_pos = get_home_pos(self.build_dimensions_list)
# We replace this function, defined in cmd.py .
# It's default behavior with reagrds to Ctr-C
......
......@@ -177,14 +177,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
self.btndict = {}
self.autoconnect = False
self.parse_cmdline(sys.argv[1:])
self.build_dimensions_list = parse_build_dimensions(self.settings.build_dimensions)
self.display_graph = self.settings.tempgraph
self.display_gauges = self.settings.tempgauges
self.p.analyzer.homeX = self.build_dimensions_list[6]
self.p.analyzer.homeY = self.build_dimensions_list[7]
self.p.analyzer.homeZ = self.build_dimensions_list[8]
#set feedrates in printcore for pause/resume
self.p.xy_feedrate = self.settings.xy_feedrate
self.p.z_feedrate = self.settings.z_feedrate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment