mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Fix devif_timer() function call
This commit is contained in:
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user