boardd: remove global variable pigeon_active (#25926)

pull/25868/head
Dean Lee 3 years ago committed by GitHub
parent 391780551a
commit badecfd060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/boardd/boardd.cc

@ -56,7 +56,6 @@
using namespace std::chrono_literals; using namespace std::chrono_literals;
std::atomic<bool> ignition(false); std::atomic<bool> ignition(false);
std::atomic<bool> pigeon_active(false);
ExitHandler do_exit; ExitHandler do_exit;
@ -346,7 +345,7 @@ std::optional<bool> send_panda_states(PubMaster *pm, const std::vector<Panda *>
} }
#ifndef __x86_64__ #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) { if (health.power_save_enabled_pkt != power_save_desired) {
panda->set_power_saving(power_save_desired); panda->set_power_saving(power_save_desired);
} }

Loading…
Cancel
Save