(self, filename, localFilename, remoteFilename)
| 416 | self._changeState(self.STATE_ERROR) |
| 417 | |
| 418 | def startFileTransfer(self, filename, localFilename, remoteFilename): |
| 419 | if not self.isOperational() or self.isBusy(): |
| 420 | logging.info("Printer is not operation or busy") |
| 421 | return |
| 422 | |
| 423 | self._currentFile = StreamingGcodeFileInformation(filename, localFilename, remoteFilename) |
| 424 | self._currentFile.start() |
| 425 | |
| 426 | self.sendCommand("M28 %s" % remoteFilename) |
| 427 | eventManager().fire(Events.TRANSFER_STARTED, {"local": localFilename, "remote": remoteFilename}) |
| 428 | self._callback.mcFileTransferStarted(remoteFilename, self._currentFile.getFilesize()) |
| 429 | |
| 430 | def selectFile(self, filename, sd): |
| 431 | if self.isBusy(): |
no test coverage detected