From 8b96b9af7b61aa54d2edb32ac5c8c373f2f51410 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 21 Sep 2023 20:51:28 -0700 Subject: [PATCH] disable panda flash logging (#30000) * disable panda flash logging * bump panda old-commit-hash: 63068b936bd8b87aedd4cb792024f08735342565 --- panda | 2 +- selfdrive/boardd/pandad.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/panda b/panda index 546087125f..62db60595b 160000 --- a/panda +++ b/panda @@ -1 +1 @@ -Subproject commit 546087125ff72877e4273eef78aa03dae5244a22 +Subproject commit 62db60595bb5129cc2f295fdc42f2cda473777fd diff --git a/selfdrive/boardd/pandad.py b/selfdrive/boardd/pandad.py index e614432fad..7f84e44da6 100755 --- a/selfdrive/boardd/pandad.py +++ b/selfdrive/boardd/pandad.py @@ -34,10 +34,12 @@ def read_panda_logs(panda: Panda) -> None: log_state = {} try: - l = json.loads(params.get("PandaLogState")) - for k, v in l.items(): - if isinstance(k, str) and isinstance(v, int): - log_state[k] = v + ls = params.get("PandaLogState") + if ls is not None: + l = json.loads(ls) + for k, v in l.items(): + if isinstance(k, str) and isinstance(v, int): + log_state[k] = v except (TypeError, json.JSONDecodeError): cloudlog.exception("failed to parse PandaLogState")