New flag to have M29 response inject "ok"

Adjusted virtual printer to allow marking of M29 as broken re sending
of ok.

Fixes #1273
This commit is contained in:
Gina Häußge committed 2016-03-10 15:58:59 +01:00
1 parent 23d2cdec76
commit 069bfdd9f8
6 files changed
+28 -3

No files matched your search

+2
View File
@@ -90,6 +90,7 @@ def getSettings():
"helloCommand": s.get(["serial", "helloCommand"]),
"ignoreErrorsFromFirmware": s.getBoolean(["serial", "ignoreErrorsFromFirmware"]),
"disconnectOnErrors": s.getBoolean(["serial", "disconnectOnErrors"]),
"triggerOkForM29": s.getBoolean(["serial", "triggerOkForM29"])
},
"folder": {
"uploads": s.getBaseFolder("uploads"),
@@ -234,6 +235,7 @@ def setSettings():
if "helloCommand" in data["serial"]: s.set(["serial", "helloCommand"], data["serial"]["helloCommand"])
if "ignoreErrorsFromFirmware" in data["serial"]: s.setBoolean(["serial", "ignoreErrorsFromFirmware"], data["serial"]["ignoreErrorsFromFirmware"])
if "disconnectOnErrors" in data["serial"]: s.setBoolean(["serial", "disconnectOnErrors"], data["serial"]["disconnectOnErrors"])
if "triggerOkForM29" in data["serial"]: s.setBoolean(["serial", "triggerOkForM29"], data["serial"]["triggerOkForM29"])
oldLog = s.getBoolean(["serial", "log"])
if "log" in data["serial"].keys(): s.setBoolean(["serial", "log"], data["serial"]["log"])