Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the update process #155

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Only shutdown on successfully update.
gb0101010101 committed Jun 6, 2020
commit 65e6cd2dc0fb13fd78aa40dd3292442e276b4409
5 changes: 2 additions & 3 deletions Actions/actions.py
Original file line number Diff line number Diff line change
@@ -128,9 +128,8 @@ def processAction(self, msg):
else:
self.data.ui_queue1.put("Alert", "Alert", "No GCode file loaded.")
elif msg["data"]["command"] == "update":
if not self.data.releaseManager.update(msg["data"]["arg"]):
self.data.ui_queue1.put("Alert", "Alert", "Error with updating webcontrol.")
else:
# Errors handled during update so only reboot on success.
if self.data.releaseManager.update(msg["data"]["arg"]):
return "Shutdown"
elif msg["data"]["command"] == "cutTriangularCalibrationPattern":
if not self.data.triangularCalibration.cutTriangularCalibrationPattern():