chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6c8f7d
)
Add some missing M codes to the GCode reader so we do not report them as unknown.
author
Daid
<daid303@gmail.com>
Thu, 5 Jul 2012 20:58:39 +0000
(22:58 +0200)
committer
Daid
<daid303@gmail.com>
Thu, 5 Jul 2012 20:58:39 +0000
(22:58 +0200)
Cura/util/gcodeInterpreter.py
patch
|
blob
|
history
diff --git
a/Cura/util/gcodeInterpreter.py
b/Cura/util/gcodeInterpreter.py
index efa2d56284cbe3a8d2cd776a8fa30ca90282f7a2..ea7985f0d19dc817bfb6914f087ffb5db7c5f29a 100644
(file)
--- a/
Cura/util/gcodeInterpreter.py
+++ b/
Cura/util/gcodeInterpreter.py
@@
-206,6
+206,10
@@
class gcode(object):
if M is not None:
if M == 1: #Message with possible wait (ignored)
pass
if M is not None:
if M == 1: #Message with possible wait (ignored)
pass
+ elif M == 80: #Enable power supply
+ pass
+ elif M == 81: #Suicide/disable power supply
+ pass
elif M == 84: #Disable step drivers
pass
elif M == 92: #Set steps per unit
elif M == 84: #Disable step drivers
pass
elif M == 92: #Set steps per unit
@@
-226,6
+230,10
@@
class gcode(object):
pass
elif M == 113: #Extruder PWM (these should not be in the final GCode, but they are)
pass
pass
elif M == 113: #Extruder PWM (these should not be in the final GCode, but they are)
pass
+ elif M == 140: #Set bed temperature
+ pass
+ elif M == 190: #Set bed temperature & wait
+ pass
else:
print "Unknown M code:" + str(M)
self.layerList.append(currentLayer)
else:
print "Unknown M code:" + str(M)
self.layerList.append(currentLayer)