apps/examplex/can: Some variables were not declared in all required cases.

This commit is contained in:
Sebastien Lorquet 2016-06-23 08:04:37 -06:00 committed by Gregory Nutt
parent fa4cd10d33
commit 546c381982

View File

@ -175,10 +175,10 @@ int can_main(int argc, FAR char *argv[])
#endif
long minid = 1;
long maxid = MAX_ID;
int msgdlc;
uint8_t msgdata;
int i;
#endif
int msgdlc;
int i;
#ifdef CONFIG_EXAMPLES_CAN_READ
struct can_msg_s rxmsg;