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
72f27a89
Commit
72f27a89
authored
May 22, 2013
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't switch raw command to lowercase in gcoder
parent
966a6c91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gcoder.py
printrun/gcoder.py
+3
-3
No files found.
printrun/gcoder.py
View file @
72f27a89
...
@@ -47,8 +47,8 @@ class Line(object):
...
@@ -47,8 +47,8 @@ class Line(object):
extruding
=
None
extruding
=
None
def
__init__
(
self
,
l
):
def
__init__
(
self
,
l
):
self
.
raw
=
l
.
lower
()
self
.
raw
=
l
self
.
split_raw
=
gcode_exp
.
findall
(
self
.
raw
)
self
.
split_raw
=
gcode_exp
.
findall
(
self
.
raw
.
lower
()
)
self
.
command
=
self
.
split_raw
[
0
]
.
upper
()
if
not
self
.
split_raw
[
0
]
.
startswith
(
"n"
)
else
self
.
split_raw
[
1
]
.
upper
()
self
.
command
=
self
.
split_raw
[
0
]
.
upper
()
if
not
self
.
split_raw
[
0
]
.
startswith
(
"n"
)
else
self
.
split_raw
[
1
]
.
upper
()
self
.
is_move
=
self
.
command
in
move_gcodes
self
.
is_move
=
self
.
command
in
move_gcodes
...
@@ -68,7 +68,7 @@ class Line(object):
...
@@ -68,7 +68,7 @@ class Line(object):
setattr
(
self
,
code
,
float
(
bit
[
1
:]))
setattr
(
self
,
code
,
float
(
bit
[
1
:]))
def
__repr__
(
self
):
def
__repr__
(
self
):
return
self
.
raw
.
upper
()
return
self
.
raw
class
Layer
(
object
):
class
Layer
(
object
):
...
...
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