diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 20:08:41 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 20:08:41 +0000 |
commit | e3f0f9bf694399dd38933f785e5acb0343dc7140 (patch) | |
tree | fb9b375e73a500b83801aad8caa87a778845a55c /nuttx/drivers/can.c | |
parent | cdc5e17971eae36f40253df4abad7be640bf9de3 (diff) | |
download | px4-nuttx-e3f0f9bf694399dd38933f785e5acb0343dc7140.tar.gz px4-nuttx-e3f0f9bf694399dd38933f785e5acb0343dc7140.tar.bz2 px4-nuttx-e3f0f9bf694399dd38933f785e5acb0343dc7140.zip |
Fix list empty checks
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1159 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/can.c')
-rw-r--r-- | nuttx/drivers/can.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/can.c b/nuttx/drivers/can.c index 7da48ba34..e68bfd94d 100644 --- a/nuttx/drivers/can.c +++ b/nuttx/drivers/can.c @@ -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 */ |