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

pull/23122/merge
Adeeb Shihadeh 2022-02-19 20:21:05 -08:00 committed by GitHub
parent 12cd852fc0
commit 719801845b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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; /**/) {