boardd/safety_setter_thread: use check_all_connected (#24102)

old-commit-hash: 333257badf
taco
Dean Lee 3 years ago committed by GitHub
parent 01676c0707
commit a013a5718a
  1. 4
      selfdrive/boardd/boardd.cc

@ -140,11 +140,9 @@ bool safety_setter_thread(std::vector<Panda *> pandas) {
std::string params;
LOGW("waiting for params to set safety model");
while (true) {
for (const auto& panda : pandas) {
if (do_exit || !panda->connected || !ignition) {
if (do_exit || !check_all_connected(pandas) || !ignition) {
return false;
}
}
if (p.getBool("ControlsReady")) {
params = p.get("CarParams");

Loading…
Cancel
Save