apps/examples/can: In extended ID mode, need to set some unused bits to zero or otherwise the memcmp() will fail on comparison with the returned value

This commit is contained in:
Gregory Nutt 2015-08-13 08:09:14 -06:00
parent d64f6c300e
commit 2f3303526f

@ -209,6 +209,7 @@ int can_main(int argc, char *argv[])
txmsg.cm_hdr.ch_dlc = msgdlc;
#ifdef CONFIG_CAN_EXTID
txmsg.cm_hdr.ch_extid = true;
txmsg.cm_hdr.ch_unused = 0;
#endif
for (i = 0; i < msgdlc; i++)