boardd: connect to all pandas if none specified (#23805)

old-commit-hash: 719801845b
taco
Adeeb Shihadeh 4 years ago committed by GitHub
parent bd6d3bfc0b
commit 4a0c03c7b7
  1. 4
      selfdrive/boardd/boardd.cc

@ -610,11 +610,11 @@ void pigeon_thread(Panda *panda) {
}
void boardd_main_thread(std::vector<std::string> serials) {
if (serials.size() == 0) serials.push_back("");
PubMaster pm({"pandaStates", "peripheralState"});
LOGW("attempting to connect");
if (serials.size() == 0) serials = Panda::list();
// connect to all provided serials
std::vector<Panda *> pandas;
for (int i = 0; i < serials.size() && !do_exit; /**/) {

Loading…
Cancel
Save