The STM32 F4 CAN driver has been verified in loopback mode

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4251 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-01-02 16:33:05 +00:00
parent b8e1e31038
commit 3d3bc75c12
4 changed files with 146 additions and 53 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ int MAIN_NAME(int argc, char *argv[])
msgsize = sizeof(struct can_msg_s);
nbytes = read(fd, &rxmsg, msgsize);
if (nbytes < CAN_MSGLEN(0) || nbytes >= msgsize)
if (nbytes < CAN_MSGLEN(0) || nbytes > msgsize)
{
message("ERROR: read(%d) returned %d\n", msgsize, nbytes);
errval = 4;