From ee6570da4a3fd7e8cbb27feae50c59064f1d55c4 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 1 Aug 2022 20:03:32 -0700 Subject: [PATCH] enable panda deep sleep (#24949) --- panda | 2 +- selfdrive/boardd/boardd.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/panda b/panda index 4b86b83991..8b26ce940f 160000 --- a/panda +++ b/panda @@ -1 +1 @@ -Subproject commit 4b86b83991e6be699c1eba79ea82846533f55467 +Subproject commit 8b26ce940f8193012ede411fa55ed30e2c34c536 diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index f47b5936be..240935175b 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -193,9 +193,11 @@ Panda *usb_connect(std::string serial="", uint32_t index=0) { return nullptr; } + // common panda config if (getenv("BOARDD_LOOPBACK")) { panda->set_loopback(true); } + panda->enable_deepsleep(); // power on charging, only the first time. Panda can also change mode and it causes a brief disconneciton #ifndef __x86_64__