Skip to content
Snippets Groups Projects
Commit 875ea61f authored by patacongo's avatar patacongo
Browse files

Fix list empty checks

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1159 42af7a65-404d-4744-a932-0658087f49c3
parent 3c1f0828
No related branches found
No related tags found
No related merge requests found
......@@ -346,7 +346,7 @@ static int can_xmit(FAR struct can_dev_s *dev)
/* Check if the xmit FIFO is empty */
if (dev->cd_xmit.cf_head != dev->cd_xmit.cf_head)
if (dev->cd_xmit.cf_head != dev->cd_xmit.cf_tail)
{
/* Send the next message at the head of the FIFO */
......@@ -728,7 +728,7 @@ int can_txdone(FAR struct can_dev_s *dev)
/* Verify that the xmit FIFO is not empty */
if (dev->cd_xmit.cf_head != dev->cd_xmit.cf_head)
if (dev->cd_xmit.cf_head != dev->cd_xmit.cf_tail)
{
/* Remove the message at the head of the xmit FIFO */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment