From 13eb9de5916e47b6f36057840eacf72037830673 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Mon, 6 May 2024 04:12:22 -0300 Subject: [PATCH] hardcoded skip for tty-likes --- plugins/USBPrinting/USBPrinterOutputDeviceManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/USBPrinting/USBPrinterOutputDeviceManager.py b/plugins/USBPrinting/USBPrinterOutputDeviceManager.py index 4eeeb7970b5..1939536c11c 100644 --- a/plugins/USBPrinting/USBPrinterOutputDeviceManager.py +++ b/plugins/USBPrinting/USBPrinterOutputDeviceManager.py @@ -84,8 +84,8 @@ def _updateThread(self): if container_stack.getMetaDataEntry("supports_usb_connection"): machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")] if "text/x-gcode" in machine_file_formats: - # We only limit listing usb on windows is a fix for connecting tty/cu printers on MacOS and Linux - port_list = self.getSerialPortList(only_list_usb=Platform.isWindows()) + # We only list usb, otherwise scanning all serial ports might take too long + port_list = self.getSerialPortList(only_list_usb=True) self._addRemovePorts(port_list) time.sleep(5)