From 5761ab58ea36beba2ddf07709590b591e04312bd Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 22 Nov 2024 19:33:04 -0800 Subject: [PATCH] what was that doing there? --- board/recover.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/recover.py b/board/recover.py index c149e948d..6268a07d9 100755 --- a/board/recover.py +++ b/board/recover.py @@ -2,21 +2,15 @@ import os import time import subprocess -import argparse from panda import Panda, PandaDFU board_path = os.path.dirname(os.path.realpath(__file__)) if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("--all", action="store_true", help="Recover all Panda devices") - args = parser.parse_args() - subprocess.check_call(f"scons -C {board_path}/.. -j$(nproc) {board_path}", shell=True) - serials = Panda.list() if args.all else [None] - for s in serials: + for s in Panda.list(): with Panda(serial=s) as p: print(f"putting {p.get_usb_serial()} in DFU mode") p.reset(enter_bootstub=True)