Fix devif_timer() function call

This commit is contained in:
Alan C. Assis
2020-06-14 20:54:57 -03:00
committed by patacongo
parent 7609b67496
commit 3a95c41370
+2 -1
View File
@@ -50,6 +50,7 @@
#include <nuttx/usb/usbhost.h> #include <nuttx/usb/usbhost.h>
#define CDCMBIM_NETBUF_SIZE 8192 #define CDCMBIM_NETBUF_SIZE 8192
#define CDCMBIM_WDDELAY (1*CLK_TCK)
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -2316,7 +2317,7 @@ static void cdcmbim_txpoll_work(void *arg)
net_lock(); net_lock();
priv->netdev.d_buf = priv->txpktbuf; priv->netdev.d_buf = priv->txpktbuf;
(void)devif_timer(&priv->netdev, cdcmbim_txpoll); (void)devif_timer(&priv->netdev, CDCMBIM_WDDELAY, cdcmbim_txpoll);
/* setup the watchdog poll timer again */ /* setup the watchdog poll timer again */