mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
boardd/safety_setter_thread: use check_all_connected (#24102)
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user