feat: 为防止上位机接收数据过慢,收到上位机消息后主动等待2秒再打开硬件接收开关

This commit is contained in:
qieYuan 2025-06-09 23:57:49 +08:00
parent 20e32469fe
commit 7af89f17bd

View File

@ -79,6 +79,7 @@ int main(int argc, char **argv) {
printf("[recvfrom]:%s\n", buffer);
if (strcmp(buffer, "ok") == 0) {
//TDDO
usleep(2000000);
printf("[mmap]:wr...\n");
mapped_addr = (volatile uint32_t *)ucp4008_ctrl_mmap_base;