Code style

This commit is contained in:
fieldOfView 2018-08-24 09:09:49 +02:00
parent 7b00d6879a
commit 5d52239201

View file

@ -205,6 +205,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
self._command_queue.put(command)
else:
self._sendCommand(command)
def _sendCommand(self, command: Union[str, bytes]):
if self._serial is None or self._connection_state != ConnectionState.connected:
return