diff --git a/Core/Src/main.c b/Core/Src/main.c index 4ae2aed..1ecd738 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -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);