mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
boardd: connect to all pandas if none specified (#23805)
old-commit-hash: 719801845bf6274fd0858a5d6736b687266bcfc6
This commit is contained in:
@@ -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; /**/) {
|
||||
|
||||
Reference in New Issue
Block a user