Log register errors as errors (#35141)

log register errors as errors
This commit is contained in:
Robbe Derks
2025-05-07 18:12:01 +02:00
committed by GitHub
parent 7c16e65347
commit 433e7268f5
+6 -1
View File
@@ -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());
}
}
}