更新UART数据传输格式,修改输出信息

This commit is contained in:
xiaozhou233 committed 2026-07-04 19:46:18 +08:00
1 parent 8d356fb4b1
commit 18560c2402
1 file changed
+5 -1
+5 -1
View File
@@ -127,11 +127,15 @@ int main(void)
PH_Calc(raw.ph, &ph);
sprintf(uart_buf,
"PH=%.2f;TDS=%.2f;TUR=%.2f\r\n",
"UPLOAD:ph=%.2f;tds=%.2f;turbidity=%.2f\r\n",
ph.ph,
tds.tds,
tur.ntu);
HAL_UART_Transmit(&huart3,
(uint8_t*)uart_buf,
strlen(uart_buf),
100);
HAL_UART_Transmit(&huart1,
(uint8_t*)uart_buf,
strlen(uart_buf),