profile.putProfileSetting('retraction_enable', 'True')
elif self.LulzbotTaz4Radio.GetValue() or self.LulzbotTaz5Radio.GetValue() or self.LulzbotMiniRadio.GetValue():
if self.LulzbotTaz4Radio.GetValue():
- profile.putMachineSetting('machine_width', '298')
+ profile.putMachineSetting('machine_width', '290')
profile.putMachineSetting('machine_depth', '275')
profile.putMachineSetting('machine_height', '250')
profile.putProfileSetting('nozzle_size', '0.35')
profile.putMachineSetting('machine_type', 'lulzbot_TAZ_4')
profile.putMachineSetting('serial_baud', '115200')
elif self.LulzbotTaz5Radio.GetValue():
- profile.putMachineSetting('machine_width', '298')
+ profile.putMachineSetting('machine_width', '290')
profile.putMachineSetting('machine_depth', '275')
profile.putMachineSetting('machine_height', '250')
profile.putMachineSetting('serial_baud', '115200')
return unicode(prefix + re.sub("(.)\{([^\}]*)\}", replaceTagMatch, alterationContents).rstrip() + '\n' + postfix).strip().encode('utf-8') + '\n'
def performVersionUpgrade():
- pass
+ for n in xrange(0, getMachineCount()):
+ # This is a hack around an issue where the machine type in the wizard
+ # changed and causes some people to have it set to lulzbot_TAZ and some
+ # people have it set to lulzbot_TAZ_4.
+ if getMachineSetting('machine_type', n) == 'lulzbot_TAZ':
+ putMachineSetting('machine_type', 'lulzbot_TAZ_4', n)
+
+ # Change TAZ print bed so prints are centered when scaled to the max
+ if getMachineSetting('machine_type', n).startswith('lulzbot_TAZ_') and
+ getMachineSetting('machine_width', n) == '298':
+ profile.putMachineSetting('machine_width', '290')