chiark / gitweb /
Remove the start/end code tab for UltiGCode flavor.
[cura.git] / Cura / util / machineCom.py
index 22e6f1326d942333fffb9e06a7869003f9362940..045aed8589405647c2582abb2d1d7271277668ff 100644 (file)
@@ -53,10 +53,10 @@ def serialList(forAutoDetect=False):
 
 def machineIsConnected():
        #UltiGCode is designed for SD-Card printing, so never auto-detect the serial port.
-       if profile.getPreference('gcode_flavor') == 'UltiGCode':
-               return False
        port = profile.getPreference('serial_port')
        if port == 'AUTO':
+               if profile.getPreference('gcode_flavor') == 'UltiGCode':
+                       return False
                return len(serialList(True)) > 0
        if platform.system() == "Windows":
                return port in serialList()