chiark / gitweb /
Fix printer interface images for frozen build. Do not report an unknown gcode for...
authordaid <daid303@gmail.com>
Fri, 1 Jun 2012 10:14:20 +0000 (12:14 +0200)
committerdaid <daid303@gmail.com>
Fri, 1 Jun 2012 10:14:20 +0000 (12:14 +0200)
Cura/gui/printWindow.py
Cura/util/gcodeInterpreter.py

index dd14425a4e20e17cf238525622af89a78ef24a1d..39686ba473ccb2b189ee35a4793fc0796d1141dd 100644 (file)
@@ -6,6 +6,7 @@ from wx.lib import buttons
 \r
 from gui import machineCom\r
 from gui import icon\r
+from gui import toolbarUtil\r
 from util import profile\r
 from util import gcodeInterpreter\r
 \r
@@ -53,7 +54,7 @@ class printProcessMonitor():
 \r
 class PrintCommandButton(buttons.GenBitmapButton):\r
        def __init__(self, parent, command, bitmapFilename, size=(20,20)):\r
-               self.bitmap = wx.Bitmap(os.path.join(os.path.split(__file__)[0], "../images", bitmapFilename))\r
+               self.bitmap = toolbarUtil.getBitmapImage(bitmapFilename)\r
                super(PrintCommandButton, self).__init__(parent.directControlPanel, -1, self.bitmap, size=size)\r
 \r
                self.command = command\r
index 1678640bed7005aed739f8f7e3f496d57ad12098..b71505058a484c402657329815665ddda3e3bbaa 100644 (file)
@@ -215,6 +215,8 @@ class gcode(object):
                                                pass
                                        elif M == 109:  #Set temperature, wait
                                                pass
+                                       elif M == 110:  #Reset N counter
+                                               pass
                                        elif M == 113:  #Extruder PWM (these should not be in the final GCode, but they are)
                                                pass
                                        else: