减少485读写切换io时间

This commit is contained in:
起床就犯困 2025-08-11 10:28:14 +08:00
parent f98396c3fc
commit de3940a003
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ void ptz_uart_dev_send(device_handle device, void *data, int len)
if(device == uart_485_handle) if(device == uart_485_handle)
{ {
PTZ_UART_485_TX; PTZ_UART_485_TX;
OSTimeDlyHMSM(0u, 0u, 0u, 10u); OSTimeDlyHMSM(0u, 0u, 0u, 1u);
for (int i = 0; i<len; i++) for (int i = 0; i<len; i++)
{ {
@ -254,7 +254,7 @@ void ptz_uart_dev_send(device_handle device, void *data, int len)
} }
} }
OSTimeDlyHMSM(0u, 0u, 0u, 10u); OSTimeDlyHMSM(0u, 0u, 0u, 1u);
PTZ_UART_485_RX; PTZ_UART_485_RX;
} }