chiark / gitweb /
Fix the bug where the M140 for bed temperature is not added in the start code.
authordaid <daid303@gmail.com>
Tue, 12 Nov 2013 10:38:36 +0000 (11:38 +0100)
committerdaid <daid303@gmail.com>
Tue, 12 Nov 2013 10:38:36 +0000 (11:38 +0100)
Cura/util/profile.py

index 9dbb40bb276f1ee33754f8a65d8e9f53fcec5196..586891455acaa85cf6e812b905e99a0cc5f65fc3 100644 (file)
@@ -956,7 +956,7 @@ def getAlterationFileContents(filename, extruderCount = 1):
                if getMachineSetting('has_heated_bed') == 'True':
                        bedTemp = getProfileSettingFloat('print_bed_temperature')
 
-               if bedTemp > 0 and isTagIn('{print_bed_temperature}', alterationContents):
+               if bedTemp > 0 and not isTagIn('{print_bed_temperature}', alterationContents):
                        prefix += 'M140 S%f\n' % (bedTemp)
                if temp > 0 and not isTagIn('{print_temperature}', alterationContents):
                        if extruderCount > 0: