Add some missing M codes to the GCode reader so we do not report them as unknown.
parent
f6c8f7d4ec
commit
42e1c34cc9
|
@ -206,6 +206,10 @@ class gcode(object):
|
||||||
if M is not None:
|
if M is not None:
|
||||||
if M == 1: #Message with possible wait (ignored)
|
if M == 1: #Message with possible wait (ignored)
|
||||||
pass
|
pass
|
||||||
|
elif M == 80: #Enable power supply
|
||||||
|
pass
|
||||||
|
elif M == 81: #Suicide/disable power supply
|
||||||
|
pass
|
||||||
elif M == 84: #Disable step drivers
|
elif M == 84: #Disable step drivers
|
||||||
pass
|
pass
|
||||||
elif M == 92: #Set steps per unit
|
elif M == 92: #Set steps per unit
|
||||||
|
@ -226,6 +230,10 @@ class gcode(object):
|
||||||
pass
|
pass
|
||||||
elif M == 113: #Extruder PWM (these should not be in the final GCode, but they are)
|
elif M == 113: #Extruder PWM (these should not be in the final GCode, but they are)
|
||||||
pass
|
pass
|
||||||
|
elif M == 140: #Set bed temperature
|
||||||
|
pass
|
||||||
|
elif M == 190: #Set bed temperature & wait
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
print "Unknown M code:" + str(M)
|
print "Unknown M code:" + str(M)
|
||||||
self.layerList.append(currentLayer)
|
self.layerList.append(currentLayer)
|
||||||
|
|
Loading…
Reference in New Issue