mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Fix name and address for USB printing devices
As address it uses the serial port, which would be COM# for Windows and /dev/ttyUSB# for Linux. I don't know what it would display there on OSX, probably a drive directory. Contributes to issue CURA-3161.
This commit is contained in:
parent
7b8d41cb8f
commit
7b41e844cc
1 changed files with 10 additions and 0 deletions
|
@ -124,6 +124,16 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
||||||
def _homeBed(self):
|
def _homeBed(self):
|
||||||
self._sendCommand("G28 Z")
|
self._sendCommand("G28 Z")
|
||||||
|
|
||||||
|
## A name for the device.
|
||||||
|
@pyqtProperty(str, constant = True)
|
||||||
|
def name(self):
|
||||||
|
return self.getName()
|
||||||
|
|
||||||
|
## The address of the device.
|
||||||
|
@pyqtProperty(str, constant = True)
|
||||||
|
def address(self):
|
||||||
|
return self._serial_port
|
||||||
|
|
||||||
def startPrint(self):
|
def startPrint(self):
|
||||||
self.writeStarted.emit(self)
|
self.writeStarted.emit(self)
|
||||||
gcode_list = getattr( Application.getInstance().getController().getScene(), "gcode_list")
|
gcode_list = getattr( Application.getInstance().getController().getScene(), "gcode_list")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue