From badecfd060bc4fe2265a680c9a42f9a9afa1647a Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Fri, 30 Sep 2022 02:30:12 +0800 Subject: [PATCH] boardd: remove global variable pigeon_active (#25926) --- selfdrive/boardd/boardd.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index 9819944af8..09e7137b38 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -56,7 +56,6 @@ using namespace std::chrono_literals; std::atomic ignition(false); -std::atomic pigeon_active(false); ExitHandler do_exit; @@ -346,7 +345,7 @@ std::optional send_panda_states(PubMaster *pm, const std::vector } #ifndef __x86_64__ - bool power_save_desired = !ignition_local && !pigeon_active; + bool power_save_desired = !ignition_local; if (health.power_save_enabled_pkt != power_save_desired) { panda->set_power_saving(power_save_desired); }