diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-03 13:47:40 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-01-03 13:47:40 +0000 |
commit | b63c7c35d3fafe30e12f36cf4fe50fac86e0ccac (patch) | |
tree | 6b22f4ee9ebc41eb7a656398a7b565c5a4ad9015 /apps/examples/can | |
parent | 896617df73c053b3916ace2478a12388087d754e (diff) | |
download | px4-firmware-b63c7c35d3fafe30e12f36cf4fe50fac86e0ccac.tar.gz px4-firmware-b63c7c35d3fafe30e12f36cf4fe50fac86e0ccac.tar.bz2 px4-firmware-b63c7c35d3fafe30e12f36cf4fe50fac86e0ccac.zip |
Improve LPC17xx CAN interrupt handling; Additions to LPC17xx SPI driver
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4255 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/examples/can')
-rw-r--r-- | apps/examples/can/can_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c index a3a2e916a..4e12fcd08 100644 --- a/apps/examples/can/can_main.c +++ b/apps/examples/can/can_main.c @@ -216,12 +216,16 @@ int MAIN_NAME(int argc, char *argv[]) message("ERROR: Data does not match. DLC=%d\n", msgdlc); for (i = 0; i < msgdlc; i++) { - message(" %d: TX %02x RX %02x\n", txmsg.cm_data[i], rxmsg.cm_data[i]); + message(" %d: TX %02x RX %02x\n", i, txmsg.cm_data[i], rxmsg.cm_data[i]); errval = 5; goto errout_with_dev; } } + /* Report success */ + + message(" ID: %4d DLC: %d -- OK\n", msgid, msgdlc); + /* Set up for the next pass */ msgdata += msgdlc; |