diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index c5310f879..e8ace77a1 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -610,11 +610,11 @@ void pigeon_thread(Panda *panda) { } void boardd_main_thread(std::vector 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 pandas; for (int i = 0; i < serials.size() && !do_exit; /**/) {