Skip to content

Commit 2946ae3

Browse files
committed
changed 'MOTOR_TEMP_SENSOR_FAULT' from Non-Critical to Critical
1 parent 1cd4a83 commit 2946ae3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Core/Inc/u_faults.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ typedef enum {
1111
BMS_CAN_MONITOR_FAULT,
1212
LIGHTNING_CAN_MONITOR_FAULT,
1313
PRECHARGE_FLOATING_FAULT,
14+
MOTOR_TEMP_SENSOR_FAULT,
1415

1516
/* Non-critical Faults */
1617
ONBOARD_TEMP_FAULT,
@@ -24,7 +25,6 @@ typedef enum {
2425
ONBOARD_PEDAL_DIFFERENCE_FAULT,
2526
RTDS_FAULT,
2627
LV_LOW_VOLTAGE_FAULT,
27-
MOTOR_TEMP_SENSOR_FAULT,
2828

2929
/* Total number of faults (cannot exceed 32.) */
3030
/* (always keep this at the end) */

Core/Src/u_faults.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static const _metadata faults[] = {
2626
[BMS_CAN_MONITOR_FAULT] = {"BMS_CAN_MONITOR_FAULT", CRITICAL, .timeout = 5000},
2727
[LIGHTNING_CAN_MONITOR_FAULT] = {"LIGHTNING_CAN_MONITOR_FAULT", CRITICAL, .timeout = 5000},
2828
[PRECHARGE_FLOATING_FAULT] = {"PRECHARGE_FLOATING_FAULT", CRITICAL, .timeout = 5000},
29+
[MOTOR_TEMP_SENSOR_FAULT] = {"MOTOR_TEMP_SENSOR_FAULT", CRITICAL, .timeout = 5000},
2930

3031
/* Non-critical Faults */
3132
[ONBOARD_TEMP_FAULT] = {"ONBOARD_TEMP_FAULT", NON_CRITICAL, .timeout = 5000},
@@ -39,7 +40,6 @@ static const _metadata faults[] = {
3940
[ONBOARD_PEDAL_DIFFERENCE_FAULT] = {"ONBOARD_PEDAL_DIFFERENCE_FAULT", NON_CRITICAL, .timeout = 5000},
4041
[RTDS_FAULT] = {"RTDS_FAULT", NON_CRITICAL, .timeout = 5000},
4142
[LV_LOW_VOLTAGE_FAULT] = {"LV_LOW_VOLTS_FAULT", NON_CRITICAL, .timeout = 5000},
42-
[MOTOR_TEMP_SENSOR_FAULT] = {"MOTOR_TEMP_SENSOR_FAULT", NON_CRITICAL, .timeout = 5000},
4343
};
4444

4545
/* Fault Globals*/

0 commit comments

Comments
 (0)