Skip to content

Commit 0c2f003

Browse files
committed
remove gcode file deletion
1 parent cb1cbdf commit 0c2f003

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog of Cura-DuetRRFPlugin
22

3+
## v1.0.1: 2018-12-19
4+
* do not try to delete the gcode file before uploading:
5+
RRF safely handles this, https://forum.duet3d.com/topic/8194/cura-duet-reprap-firmware-integration-question
6+
37
## v1.0.0: 2018-11-25
48
* tested with Cura 3.6
59
* add Duet3D icon - permission granted by Think3dPrint3d

DuetRRFOutputDevice.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -163,23 +163,7 @@ def onFilenameAccepted(self):
163163

164164
# start
165165
Logger.log("d", self._name_id + " | Connecting...")
166-
self._send('connect', [("password", self._duet_password), self._timestamp()], self.onConnected)
167-
168-
def onConnected(self):
169-
if self._stage != OutputStage.writing:
170-
return
171-
172-
Logger.log("d", self._name_id + " | Deleting file with the same name...")
173-
174-
self._send('delete', [("name", "0:/gcodes/" + self._fileName)], self.onBeforeUploadCleanupDone)
175-
176-
def onBeforeUploadCleanupDone(self):
177-
if self._stage != OutputStage.writing:
178-
return
179-
180-
Logger.log("d", self._name_id + " | Reading and discarding possible error message...")
181-
182-
self._send('reply', [], self.onUploadReady)
166+
self._send('connect', [("password", self._duet_password), self._timestamp()], self.onUploadReady)
183167

184168
def onUploadReady(self):
185169
if self._stage != OutputStage.writing:

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "DuetRRF",
33
"author": "Thomas Kriechbaumer",
44
"description": "Upload and Print to DuetWifi / DuetEthernet / Duet Maestro with RepRapFirmware.",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"minimum_cura_version": "3.5",
77
"maximum_cura_version": "3.6",
88
"api": 5

0 commit comments

Comments
 (0)