From 9bfb0e469056eea1175da36fb317528a8dc80d8a Mon Sep 17 00:00:00 2001 From: "Jasper v. Blanckenburg" Date: Thu, 26 Sep 2024 18:43:25 +0200 Subject: [PATCH] Set AMS error in Error_Handler() --- Core/Src/main.c | 1 + 1 file changed, 1 insertion(+) 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);