Check if self._comm is None before trying to select a file...
This commit is contained in:
parent
ae09a50fe5
commit
5631a45006
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ class Printer():
|
||||||
self._comm.sendCommand(command)
|
self._comm.sendCommand(command)
|
||||||
|
|
||||||
def selectFile(self, filename, sd, printAfterSelect=False):
|
def selectFile(self, filename, sd, printAfterSelect=False):
|
||||||
if self._comm is not None and (self._comm.isBusy() or self._comm.isStreaming()):
|
if self._comm is None or (self._comm.isBusy() or self._comm.isStreaming()):
|
||||||
return
|
return
|
||||||
|
|
||||||
self._printAfterSelect = printAfterSelect
|
self._printAfterSelect = printAfterSelect
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue