mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
USB device is first added and then trying to connect.
This is to ensure that USB printers work without autodetect
This commit is contained in:
parent
bd4797404d
commit
1ae881caee
2 changed files with 2 additions and 2 deletions
|
@ -127,10 +127,10 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||
try:
|
||||
self._serial = Serial(str(self._serial_port), self._baud_rate, timeout=self._timeout, writeTimeout=self._timeout)
|
||||
except SerialException:
|
||||
Logger.log("w", "An exception occured while trying to create serial connection")
|
||||
return
|
||||
container_stack = Application.getInstance().getGlobalContainerStack()
|
||||
num_extruders = container_stack.getProperty("machine_extruder_count", "value")
|
||||
|
||||
# Ensure that a printer is created.
|
||||
self._printers = [PrinterOutputModel(output_controller=USBPrinterOuptutController(self), number_of_extruders=num_extruders)]
|
||||
self.setConnectionState(ConnectionState.connected)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue