Log register errors as errors (#35141)

log register errors as errors
pull/35142/head
Robbe Derks 4 days ago committed by GitHub
parent 7c16e65347
commit 433e7268f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      selfdrive/pandad/pandad.cc

@ -456,9 +456,14 @@ void pandad_run(std::vector<Panda *> &pandas) {
for (auto *panda : pandas) {
std::string log = panda->serial_read();
if (!log.empty()) {
if (log.find("Register 0x") != std::string::npos) {
// Log register divergent faults as errors
LOGE("%s", log.c_str());
} else {
LOGD("%s", log.c_str());
}
}
}
rk.keepTime();
}

Loading…
Cancel
Save