Set AMS error in Error_Handler()
This commit is contained in:
parent
2b3c79c11f
commit
9bfb0e4690
|
@ -545,6 +545,7 @@ void Error_Handler(void)
|
|||
/* USER CODE BEGIN Error_Handler_Debug */
|
||||
/* User can add his own implementation to report the HAL error return state */
|
||||
__disable_irq();
|
||||
HAL_GPIO_WritePin(AMS_NERROR_GPIO_Port, AMS_NERROR_Pin, GPIO_PIN_RESET);
|
||||
while (1) {
|
||||
ts_sm_set_relay_position(RELAY_NEG, 0);
|
||||
ts_sm_set_relay_position(RELAY_POS, 0);
|
||||
|
|
Loading…
Reference in New Issue