boardd: remove global variable pigeon_active (#25926)

old-commit-hash: badecfd060bc4fe2265a680c9a42f9a9afa1647a
This commit is contained in:
Dean Lee
2022-09-30 02:30:12 +08:00
committed by GitHub
parent bcd69adc33
commit f4c83e8d78

View File

@@ -56,7 +56,6 @@
using namespace std::chrono_literals;
std::atomic<bool> ignition(false);
std::atomic<bool> pigeon_active(false);
ExitHandler do_exit;
@@ -346,7 +345,7 @@ std::optional<bool> send_panda_states(PubMaster *pm, const std::vector<Panda *>
}
#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);
}