mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
net/devif/devif_cansend.c: fix assertion for max data len
This commit is contained in:
committed by
Gustavo Henrique Nihei
parent
43ddcd5277
commit
6185377eec
@@ -83,7 +83,7 @@
|
||||
void devif_can_send(FAR struct net_driver_s *dev, FAR const void *buf,
|
||||
unsigned int len)
|
||||
{
|
||||
DEBUGASSERT(dev && len > 0 && len < NETDEV_PKTSIZE(dev));
|
||||
DEBUGASSERT(dev && len > 0 && len <= NETDEV_PKTSIZE(dev));
|
||||
|
||||
/* Copy the data into the device packet buffer */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user