From c806f47ab3d2552e20670bef078392e0dd96eb7f Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 17 Mar 2012 00:25:34 +0000 Subject: NFS update; fix STM32 enabling of CAN2 clock git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4494 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/can/can_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/examples/can/can_main.c b/apps/examples/can/can_main.c index c7b0859ba..0ea729e5e 100644 --- a/apps/examples/can/can_main.c +++ b/apps/examples/can/can_main.c @@ -229,10 +229,10 @@ int MAIN_NAME(int argc, char *argv[]) errval = 3; goto errout_with_dev; } +#endif -#ifndef CONFIG_EXAMPLES_CAN_READWRITE +#ifdef CONFIG_EXAMPLES_CAN_WRITEONLY message(" ID: %4d DLC: %d\n", msgid, msgdlc); -#endif #endif /* Read the RX message */ @@ -246,10 +246,10 @@ int MAIN_NAME(int argc, char *argv[]) errval = 4; goto errout_with_dev; } +#endif -#ifndef CONFIG_EXAMPLES_CAN_READWRITE +#ifndef CONFIG_EXAMPLES_CAN_READONLY message(" ID: %4d DLC: %d\n", rxmsg.cm_hdr.id, rxmsg.cm_hdr.dlc); -#endif #endif /* Verify that the received messages are the same */ -- cgit v1.2.3