revise usart speed

This commit is contained in:
Yunhorn 2025-04-16 11:10:10 +08:00
parent b83ca6cd96
commit 9593879912
3 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ void MX_USART2_UART_Init(void)
/* USER CODE END USART2_Init 1 */ /* USER CODE END USART2_Init 1 */
huart2.Instance = USART2; huart2.Instance = USART2;
huart2.Init.BaudRate = 115200; huart2.Init.BaudRate = 460800;
huart2.Init.WordLength = UART_WORDLENGTH_8B; huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1; huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE; huart2.Init.Parity = UART_PARITY_NONE;

View File

@ -431,7 +431,7 @@ static void print_result(acc_detector_presence_result_t result)
} }
else else
{ {
APP_LOG(TS_OFF, VLEVEL_M,"No motion, score: %u\n", (int)(result.presence_score * 1000.0f)); APP_LOG(TS_OFF, VLEVEL_M,"No motion, Distance: %u score: %u\n", (int)(result.presence_distance * 1000.0f),(int)(result.presence_score * 1000.0f));
} }
} }

Binary file not shown.