uC/Pinball_Controller_V0/Core/Src/main.c
void Error_Handler(void)
{
  /* USER CODE BEGIN Error_Handler_Debug */

	char error_handler_message[120];
	sprintf(error_handler_message, "%ld ticks: Error-Handler\r\n", xTaskGetTickCount());
	CDC_Transmit_FS( (uint8_t*) error_handler_message, strlen(error_handler_message));


  /* User can add his own implementation to report the HAL error return state */
  __disable_irq();
  while (1)
  {
  }
  /* USER CODE END Error_Handler_Debug */
}
/**
  * @brief  This function is executed in case of error occurrence.
  * @retval None
  */
@brief  This function is executed in case of error occurrence.
@retval None
@brief This function is executed in case of error occurrence . @retval None
void Error_Handler(void)
{
	char error_handler_message[120];
	sprintf(error_handler_message, "%ld ticks: Error-Handler\r\n", xTaskGetTickCount());
	CDC_Transmit_FS( (uint8_t*) error_handler_message, strlen(error_handler_message));
  __disable_irq();
  while (1)
  {
  }
}
void Error_Handler ( void ) { char error_handler_message [ 120 ] ; sprintf ( error_handler_message , " \r \n " , xTaskGetTickCount ( ) ) ; CDC_Transmit_FS ( ( uint8_t * ) error_handler_message , strlen ( error_handler_message ) ) ; __disable_irq ( ) ; while ( 1 ) { } }
@brief  This function is executed in case of error occurrence.
@brief This function is executed in case of error occurrence .
/* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ /* USER CODE END Error_Handler_Debug */