add new internal bms fault slave error code

This commit is contained in:
2024-04-18 01:28:58 +02:00
parent 8005b94b24
commit f9fafd931c
2 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void slaves_handle_panic(const uint8_t *data) {
uint8_t idx = get_slave_index(slave_id);
uint8_t error_kind = ftcan_unmarshal_unsigned(ptr, 1);
switch (error_kind) {
case SLAVE_PANIC_OT ... SLAVE_PANIC_INTERNAL_BMS_OVERTEMP:
case SLAVE_PANIC_OT ... SLAVE_PANIC_INTERNAL_BMS_FAULT:
slaves[idx].error.kind = error_kind + 2; //SlaveErrorKind on master is 2 higher than on slave (errors.h in slave firmware)
break;
default: