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
086bb290
Commit
086bb290
authored
Apr 04, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't assume a Nlinenumber means there is a valid command after
parent
97fd4c01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gcoder.py
printrun/gcoder.py
+3
-1
No files found.
printrun/gcoder.py
View file @
086bb290
...
...
@@ -76,12 +76,14 @@ def P(line):
def
split
(
line
):
split_raw
=
gcode_exp
.
findall
(
line
.
raw
.
lower
())
if
split_raw
and
split_raw
[
0
][
0
]
==
"n"
:
del
split_raw
[
0
]
if
not
split_raw
:
line
.
command
=
line
.
raw
line
.
is_move
=
False
logging
.
warning
(
"raw G-Code line
\"
%
s
\"
could not be parsed"
%
line
.
raw
)
return
[
line
.
raw
]
command
=
split_raw
[
0
]
if
split_raw
[
0
][
0
]
!=
"n"
else
split_raw
[
1
]
command
=
split_raw
[
0
]
line
.
command
=
command
[
0
]
.
upper
()
+
command
[
1
]
line
.
is_move
=
line
.
command
in
move_gcodes
return
split_raw
...
...
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