we need this to start off, unless we set multiplexing immediately

pull/27656/head
Shane Smiskol 2 years ago
parent 9a9c402991
commit 03779b6f0d
  1. 6
      selfdrive/boardd/boardd.cc

@ -113,6 +113,12 @@ bool safety_setter_thread(std::vector<Panda *> pandas) {
return false;
}
// set to ELM327 for fingerprinting
for (int i = 0; i < pandas.size(); i++) {
const uint16_t safety_param = (i > 0) ? 1U : 0U;
pandas[i]->set_safety_model(cereal::CarParams::SafetyModel::ELM327, safety_param);
}
// openpilot can switch between multiplexing modes for different FW queries,
// set to ELM327 and wait for FW query to finish
while (true) {

Loading…
Cancel
Save