From 3a95c41370f2ce957e8ba8223be5724c3404df45 Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Sun, 14 Jun 2020 20:54:57 -0300 Subject: [PATCH] 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 b0b251cd58..25859803da 100644 --- a/drivers/usbhost/usbhost_cdcmbim.c +++ b/drivers/usbhost/usbhost_cdcmbim.c @@ -50,6 +50,7 @@ #include #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 */