Merge branch 'devel-en' into devel-zhs

This commit is contained in:
dragonpilot
2019-10-18 09:52:42 +10:00
+7 -7
View File
@@ -45,13 +45,13 @@ def update_panda():
if panda.bootstub or not current_version.startswith(repo_version):
cloudlog.info("Panda firmware out of date, update required")
signed_fn = os.path.join(BASEDIR, "board", "obj", "panda.bin.signed")
if os.path.exists(signed_fn):
cloudlog.info("Flashing signed firmware")
panda.flash(fn=signed_fn)
else:
cloudlog.info("Building and flashing unsigned firmware")
panda.flash()
#signed_fn = os.path.join(BASEDIR, "board", "obj", "panda.bin.signed")
#if os.path.exists(signed_fn):
# cloudlog.info("Flashing signed firmware")
# panda.flash(fn=signed_fn)
#else:
cloudlog.info("Building and flashing unsigned firmware")
panda.flash()
cloudlog.info("Done flashing")