print more details when CSxFLT happens
This commit is contained in:
parent
4ecb91ba39
commit
015b0ff4f2
@ -129,6 +129,15 @@ void print_battery_info() {
|
||||
debug_log(LOG_LEVEL_INFO, " Status flags: %s",
|
||||
hasFlags ? flagBuffer : "[none]");
|
||||
|
||||
if (modules[i].status.CS_FLT) { // Print out which ADCs are faulting
|
||||
debug_log(LOG_LEVEL_INFO, "Comparison fault on ADC/Cell(s): ");
|
||||
for (ssize_t j = 0; j < 16; j++) {
|
||||
if (modules[i].status.CS_FLT & (1u << j)) {
|
||||
debug_log_cont(LOG_LEVEL_INFO, "%d ", j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
debug_log(LOG_LEVEL_INFO, " Conversion counter: %d",
|
||||
modules[i].status.CCTS);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user