mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
Merge branch 'devel-en' into devel-zhs
This commit is contained in:
+7
-7
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user