You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/15 13:13:32 UTC

[incubator-nuttx] 05/06: Fix devif_timer() function call

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 3a95c41370f2ce957e8ba8223be5724c3404df45
Author: Alan C. Assis <ac...@gmail.com>
AuthorDate: Sun Jun 14 20:54:57 2020 -0300

    Fix devif_timer() function call
---
 drivers/usbhost/usbhost_cdcmbim.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usbhost/usbhost_cdcmbim.c b/drivers/usbhost/usbhost_cdcmbim.c
index b0b251c..2585980 100644
--- a/drivers/usbhost/usbhost_cdcmbim.c
+++ b/drivers/usbhost/usbhost_cdcmbim.c
@@ -50,6 +50,7 @@
 #include <nuttx/usb/usbhost.h>
 
 #define CDCMBIM_NETBUF_SIZE 8192
+#define CDCMBIM_WDDELAY     (1*CLK_TCK)
 
 /****************************************************************************
  * Pre-processor Definitions
@@ -2316,7 +2317,7 @@ static void cdcmbim_txpoll_work(void *arg)
   net_lock();
   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 */