Bugfixed the SocketCAN send via setting the dev->d_len to dev->d_sndlen. The dev->d_len wouldn't be assigned otherwise.

This commit is contained in:
David 2023-01-27 13:19:47 +01:00 committed by Xiang Xiao
parent 8c465a64b9
commit 22feaeeebb
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ static uint16_t psock_send_eventhandler(FAR struct net_driver_s *dev,
/* Copy the packet data into the device packet buffer and send it */
devif_send(dev, pstate->snd_buffer, pstate->snd_buflen, 0);
dev->d_len = dev->d_sndlen;
if (dev->d_sndlen == 0)
{
return flags;