diff --git a/Src/main.c b/Src/main.c index d6f99cc..4edd835 100644 --- a/Src/main.c +++ b/Src/main.c @@ -1657,8 +1657,7 @@ void assert_failed(uint8_t* file, uint32_t line) /* USER CODE BEGIN 6 */ /* User can add his own implementation to report the file name and line number, tex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ - - _Error_Handler(__FILE__, __LINE__); + ERROR("Wrong parameters value: file %s on line %d", file, line); /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */