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
9615e7bc
Commit
9615e7bc
authored
Apr 02, 2016
by
Kliment Yanev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not try to update total filament used if no gcode is loaded. Fixes #731
parent
ace66376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pronsole.py
printrun/pronsole.py
+3
-2
No files found.
printrun/pronsole.py
View file @
9615e7bc
...
@@ -1187,8 +1187,9 @@ class pronsole(cmd.Cmd):
...
@@ -1187,8 +1187,9 @@ class pronsole(cmd.Cmd):
"duration"
:
format_duration
(
print_duration
)})
"duration"
:
format_duration
(
print_duration
)})
# Update total filament length used
# Update total filament length used
new_total
=
self
.
settings
.
total_filament_used
+
self
.
fgcode
.
filament_length
if
self
.
fgcode
is
not
None
:
self
.
set
(
"total_filament_used"
,
new_total
)
new_total
=
self
.
settings
.
total_filament_used
+
self
.
fgcode
.
filament_length
self
.
set
(
"total_filament_used"
,
new_total
)
if
not
self
.
settings
.
final_command
:
if
not
self
.
settings
.
final_command
:
return
return
...
...
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