diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-03 13:47:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-01-03 13:47:40 +0000 |
commit | b748be7443a9b0a3077856a5a11ac12acbcefda9 (patch) | |
tree | 6b22f4ee9ebc41eb7a656398a7b565c5a4ad9015 /apps/examples/can | |
parent | 048e0346039fad2af077a7ebe7fb815c9d98cfd2 (diff) | |
download | px4-nuttx-b748be7443a9b0a3077856a5a11ac12acbcefda9.tar.gz px4-nuttx-b748be7443a9b0a3077856a5a11ac12acbcefda9.tar.bz2 px4-nuttx-b748be7443a9b0a3077856a5a11ac12acbcefda9.zip |
Improve LPC17xx CAN interrupt handling; Additions to LPC17xx SPI driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4255 42af7a65-404d-4744-a932-0658087f49c3
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; |