Skip to content

Commit

Permalink
Revert "hpmicro: usbhost_cdcacm: fix usbhost_rxint()"
Browse files Browse the repository at this point in the history
This reverts commit 4ec9b68.

Signed-off-by: Zhihong Chen <[email protected]>
  • Loading branch information
chenzhihong007 committed Jun 28, 2024
1 parent 313dadd commit f175ab5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions drivers/usbhost/usbhost_cdcacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2593,11 +2593,17 @@ static void usbhost_rxint(FAR struct uart_dev_s *uartdev, bool enable)
DEBUGASSERT(ret >= 0);
UNUSED(ret);
}
}
else if (!enable && priv->rxena)
{
/* Cancel any pending RX data reception work */

/* Save the new RX enable state */

priv->rxena = enable;
work_cancel(LPWORK, &priv->rxwork);
}

/* Save the new RX enable state */

priv->rxena = enable;
}

/****************************************************************************
Expand Down

0 comments on commit f175ab5

Please sign in to comment.