From 972b0dca9477c3da6f787478401d58e26e7db843 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 6 Aug 2023 23:06:26 -0700 Subject: [PATCH] don't try to reflash bootstub when reconnecting --- python/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python/__init__.py b/python/__init__.py index cb0b0fb79..e1b3a471e 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -472,11 +472,7 @@ class Panda: success = True break except Exception: - try: - dfu = PandaDFU(self.get_dfu_serial()) - dfu.recover() - except Exception: - pass + pass time.sleep(0.1) if not success: raise Exception("reconnect failed")