Skip to content

Commit

Permalink
remove gcode file deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Dec 19, 2018
1 parent cb1cbdf commit 0c2f003
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog of Cura-DuetRRFPlugin

## v1.0.1: 2018-12-19
* do not try to delete the gcode file before uploading:
RRF safely handles this, https://forum.duet3d.com/topic/8194/cura-duet-reprap-firmware-integration-question

## v1.0.0: 2018-11-25
* tested with Cura 3.6
* add Duet3D icon - permission granted by Think3dPrint3d
Expand Down
18 changes: 1 addition & 17 deletions DuetRRFOutputDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,7 @@ def onFilenameAccepted(self):

# start
Logger.log("d", self._name_id + " | Connecting...")
self._send('connect', [("password", self._duet_password), self._timestamp()], self.onConnected)

def onConnected(self):
if self._stage != OutputStage.writing:
return

Logger.log("d", self._name_id + " | Deleting file with the same name...")

self._send('delete', [("name", "0:/gcodes/" + self._fileName)], self.onBeforeUploadCleanupDone)

def onBeforeUploadCleanupDone(self):
if self._stage != OutputStage.writing:
return

Logger.log("d", self._name_id + " | Reading and discarding possible error message...")

self._send('reply', [], self.onUploadReady)
self._send('connect', [("password", self._duet_password), self._timestamp()], self.onUploadReady)

def onUploadReady(self):
if self._stage != OutputStage.writing:
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "DuetRRF",
"author": "Thomas Kriechbaumer",
"description": "Upload and Print to DuetWifi / DuetEthernet / Duet Maestro with RepRapFirmware.",
"version": "1.0.0",
"version": "1.0.1",
"minimum_cura_version": "3.5",
"maximum_cura_version": "3.6",
"api": 5
Expand Down

0 comments on commit 0c2f003

Please sign in to comment.