From 719801845bf6274fd0858a5d6736b687266bcfc6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 19 Feb 2022 20:21:05 -0800 Subject: [PATCH] boardd: connect to all pandas if none specified (#23805) --- selfdrive/boardd/boardd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; /**/) {