chiark / gitweb /
Preheat the bed before heating the nozzles.
authordaid <daid303@gmail.com>
Tue, 28 Oct 2014 08:51:46 +0000 (09:51 +0100)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 14 Jan 2015 17:07:57 +0000 (12:07 -0500)
Cura/util/profile.py

index 75f809039cb2d172acb924acb69082a6141f8065..28970aea71e250f992bc93818717b8bb923e4e4e 100644 (file)
@@ -1260,7 +1260,7 @@ def getAlterationFileContents(filename, extruderCount = 1):
                        bedTemp = getProfileSettingFloat('print_bed_temperature')
 
                if bedTemp > 0 and not isTagIn('{print_bed_temperature}', alterationContents):
-                       prefix += 'M140 S%f\n' % (bedTemp)
+                       prefix += 'M190 S%f\n' % (bedTemp)
                if temp > 0 and not isTagIn('{print_temperature}', alterationContents):
                        if extruderCount > 0:
                                for n in xrange(1, extruderCount):
@@ -1276,8 +1276,6 @@ def getAlterationFileContents(filename, extruderCount = 1):
                                prefix += 'T0\n'
                        else:
                                prefix += 'M109 S%f\n' % (temp)
-               if bedTemp > 0 and not isTagIn('{print_bed_temperature}', alterationContents):
-                       prefix += 'M190 S%f\n' % (bedTemp)
        elif filename == 'end.gcode':
                if extruderCount > 1:
                        alterationContents = getAlterationFile("end%d.gcode" % (extruderCount))