Log register errors as errors (#35141)

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

@ -456,7 +456,12 @@ void pandad_run(std::vector<Panda *> &pandas) {
for (auto *panda : pandas) {
std::string log = panda->serial_read();
if (!log.empty()) {
LOGD("%s", log.c_str());
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());
}
}
}

Loading…
Cancel
Save