mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:15:52 +08:00
Code style
This commit is contained in:
parent
7b00d6879a
commit
5d52239201
@ -205,6 +205,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self._command_queue.put(command)
|
self._command_queue.put(command)
|
||||||
else:
|
else:
|
||||||
self._sendCommand(command)
|
self._sendCommand(command)
|
||||||
|
|
||||||
def _sendCommand(self, command: Union[str, bytes]):
|
def _sendCommand(self, command: Union[str, bytes]):
|
||||||
if self._serial is None or self._connection_state != ConnectionState.connected:
|
if self._serial is None or self._connection_state != ConnectionState.connected:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user