Return if UART not initialized

This commit is contained in:
2026-06-24 13:08:33 +02:00
parent c27f153e2a
commit 72e8c19abf
+2
View File
@@ -91,6 +91,8 @@ int _write(int file, char *ptr, int len)
void uart_debug_print(const char *fmt, ...)
{
if (huart1.gState == HAL_UART_STATE_RESET) return;
char buf[128];
va_list args;