Reset LEDs in error handler

This commit is contained in:
2026-06-10 14:27:39 +02:00
parent 59a58d1f1f
commit de7c817471
+3
View File
@@ -459,6 +459,9 @@ void Error_Handler(void)
// TODO: write error to SD and/or serial
HAL_GPIO_WritePin(led_can1.port, led_can1.pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(led_can2.port, led_can2.pin, GPIO_PIN_RESET);
while (1)
{
HAL_GPIO_TogglePin(led_error.port, led_error.pin);