mirror of https://github.com/commaai/panda.git
exit flashing scripts with error if no pandas
This commit is contained in:
parent
74e6a54503
commit
cccceabf8a
|
@ -15,3 +15,4 @@ if __name__ == "__main__":
|
|||
print("flashing", s)
|
||||
with Panda(serial=s) as p:
|
||||
p.flash()
|
||||
exit(1 if len(serials) == 0 else 0)
|
||||
|
|
|
@ -15,3 +15,5 @@ if __name__ == "__main__":
|
|||
print("flashing", s)
|
||||
with PandaJungle(serial=s) as p:
|
||||
p.flash()
|
||||
|
||||
exit(1 if len(serials) == 0 else 0)
|
||||
|
|
|
@ -24,3 +24,4 @@ if __name__ == "__main__":
|
|||
for s in dfu_serials:
|
||||
print("flashing", s)
|
||||
PandaJungleDFU(s).recover()
|
||||
exit(1 if len(dfu_serials) == 0 else 0)
|
||||
|
|
|
@ -24,3 +24,4 @@ if __name__ == "__main__":
|
|||
for s in dfu_serials:
|
||||
print("flashing", s)
|
||||
PandaDFU(s).recover()
|
||||
exit(1 if len(dfu_serials) == 0 else 0)
|
||||
|
|
Loading…
Reference in New Issue