Reset line numbers for sd streaming as well

This commit is contained in:
Gina Häußge 2016-03-09 15:44:23 +01:00
parent 13098dde00
commit 1a308a1bc7

View file

@ -648,6 +648,7 @@ class MachineCom(object):
self._currentFile = StreamingGcodeFileInformation(filename, localFilename, remoteFilename)
self._currentFile.start()
self.resetLineNumbers()
self.sendCommand("M28 %s" % remoteFilename)
eventManager().fire(Events.TRANSFER_STARTED, {"local": localFilename, "remote": remoteFilename})
self._callback.on_comm_file_transfer_started(remoteFilename, self._currentFile.getFilesize())