boardd/safety_setter_thread: use check_all_connected (#24102)

pull/24109/head
Dean Lee 3 years ago committed by GitHub
parent 3fc4f8dfcf
commit 333257badf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      selfdrive/boardd/boardd.cc

@ -140,10 +140,8 @@ 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) {
return false;
}
if (do_exit || !check_all_connected(pandas) || !ignition) {
return false;
}
if (p.getBool("ControlsReady")) {

Loading…
Cancel
Save