Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/cad/cura/files/patch-plugins_USBPrinting_USBPrinterOutputDeviceManager.py
16149 views
1
We cannot really distinguish between USB and non-USB here,
2
as port[2] is 'n/a' on FreeBSD.
3
4
--- plugins/USBPrinting/USBPrinterOutputDeviceManager.py.orig 2020-07-23 19:29:25 UTC
5
+++ plugins/USBPrinting/USBPrinterOutputDeviceManager.py
6
@@ -123,8 +123,6 @@
7
port = (port.device, port.description, port.hwid)
8
if not port[2]: # HWID may be None if the device is not USB or the system doesn't report the type.
9
continue
10
- if only_list_usb and not port[2].startswith("USB"):
11
- continue
12
13
# To prevent cura from messing with serial ports of other devices,
14
# filter by regular expressions passed in as environment variables.
15
16