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
5e1960df
Commit
5e1960df
authored
Dec 16, 2011
by
jglauche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix printcore: require port
parent
0f55bce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
printcore.py
printcore.py
+5
-4
No files found.
printcore.py
View file @
5e1960df
...
...
@@ -267,12 +267,13 @@ if __name__ == '__main__':
#print "Usage: python printcore.py filename.gcode"
filename
=
"../prusamendel/sellsx_export.gcode"
if
len
(
sys
.
argv
)
>
1
:
filename
=
sys
.
argv
[
1
]
port
=
sys
.
argv
[
1
]
filename
=
sys
.
argv
[
2
]
print
"Printing: "
+
filename
else
:
print
"Usage: python printcore.py filename.gcode"
#
sys.exit(2)
p
=
printcore
(
'/dev/ttyUSB0'
,
115200
)
print
"Usage: python printcore.py
/dev/tty[USB|ACM]x
filename.gcode"
sys
.
exit
(
2
)
p
=
printcore
(
port
,
115200
)
p
.
loud
=
True
statusreport
=
False
time
.
sleep
(
2
)
...
...
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