From db57a21c8878602d86fbf4ec23bfe49e17e8b543 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 22 Feb 2024 17:15:53 -0800 Subject: [PATCH] pandad: wait until USB is up before panda recovery (#31549) --- selfdrive/boardd/pandad.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selfdrive/boardd/pandad.py b/selfdrive/boardd/pandad.py index 672678778b..a87613c803 100755 --- a/selfdrive/boardd/pandad.py +++ b/selfdrive/boardd/pandad.py @@ -93,6 +93,11 @@ def main() -> NoReturn: cloudlog.event("pandad.flash_and_connect", count=count) params.remove("PandaSignatures") + # TODO: remove this in the next AGNOS + # wait until USB is up before counting + if time.monotonic() < 25.: + no_internal_panda_count = 0 + # Handle missing internal panda if no_internal_panda_count > 0: if no_internal_panda_count == 3: