boardd: set extra pandas to silent safety mode (#24511)

This commit is contained in:
Adeeb Shihadeh
2022-05-12 14:50:45 -07:00
committed by GitHub
parent 7ad44b7d53
commit 41b3f253d1
+6 -1
View File
@@ -115,11 +115,15 @@ bool safety_setter_thread(std::vector<Panda *> pandas) {
return false;
}
// set to ELM327 for fingerprinting
pandas[0]->set_safety_model(cereal::CarParams::SafetyModel::ELM327);
for (int i = 1; i < pandas.size(); i++) {
pandas[i]->set_safety_model(cereal::CarParams::SafetyModel::SILENT);
}
Params p = Params();
// switch to SILENT when CarVin param is read
// wait for VIN to be read
while (true) {
if (do_exit || !check_all_connected(pandas) || !ignition) {
return false;
@@ -135,6 +139,7 @@ bool safety_setter_thread(std::vector<Panda *> pandas) {
util::sleep_for(20);
}
// set to ELM327 for ECU knockouts
pandas[0]->set_safety_model(cereal::CarParams::SafetyModel::ELM327, 1U);
std::string params;