mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 03:33:33 +08:00
USB monitor daemon updates
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5579 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -42,9 +42,12 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <debug.h>
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
#include <syslog.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/usb/usbdev_trace.h"
|
||||
#include <nuttx/usb/usbdev_trace.h>
|
||||
|
||||
#ifdef CONFIG_SYSTEM_USBMONITOR
|
||||
|
||||
@@ -89,7 +92,8 @@ static int usbmonitor_daemon(int argc, char **argv)
|
||||
|
||||
while (!g_usbmonitor.stop)
|
||||
{
|
||||
(void)usbmonitor_enumerate(nsh_tracecallback, NULL);
|
||||
sleep(2);
|
||||
(void)usbtrace_enumerate(usbmonitor_tracecallback, NULL);
|
||||
}
|
||||
|
||||
/* Stopped */
|
||||
|
||||
Reference in New Issue
Block a user