add new internal bms fault slave error code
This commit is contained in:
		@ -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:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user