Skip to content

Commit 7198018

Browse files
boardd: connect to all pandas if none specified (commaai#23805)
1 parent 12cd852 commit 7198018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/boardd/boardd.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,11 @@ void pigeon_thread(Panda *panda) {
610610
}
611611

612612
void boardd_main_thread(std::vector<std::string> serials) {
613-
if (serials.size() == 0) serials.push_back("");
614-
615613
PubMaster pm({"pandaStates", "peripheralState"});
616614
LOGW("attempting to connect");
617615

616+
if (serials.size() == 0) serials = Panda::list();
617+
618618
// connect to all provided serials
619619
std::vector<Panda *> pandas;
620620
for (int i = 0; i < serials.size() && !do_exit; /**/) {

0 commit comments

Comments
 (0)