Skip to content

Commit

Permalink
Revert "fix: adjust the select usb timeout"
Browse files Browse the repository at this point in the history
This reverts commit a9acd86.
  • Loading branch information
GongHeng2017 authored and max-lvs committed Jan 20, 2025
1 parent a7454bd commit 3c7ae8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void MonitorUsb::monitor()
FD_ZERO(&fds);
FD_SET(fd, &fds);
tv.tv_sec = 0;
tv.tv_usec = 1000000;
tv.tv_usec = 10000;
int ret = select(fd + 1, &fds, nullptr, nullptr, &tv);

// 判断是否有事件产生
Expand Down

0 comments on commit 3c7ae8d

Please sign in to comment.