Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
26c424ab
Commit
26c424ab
authored
Nov 05, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set home_pos from pronsole and factorize build_dimensions handling
parent
f39bb963
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
pronsole.py
printrun/pronsole.py
+2
-1
pronterface.py
printrun/pronterface.py
+0
-5
No files found.
printrun/pronsole.py
View file @
26c424ab
...
...
@@ -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
...
...
printrun/pronterface.py
View file @
26c424ab
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment