Log an error if an assertion fails.

m17
Rob Riggs 2021-02-21 17:15:43 -06:00
rodzic 3eba2f3566
commit 308ef55ac4
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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 */