mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-15 09:23:24 +00:00
apps/examples/can: ix can example app to print data when CONFIG_EXAMPLE_CAN_READ is defined
This commit is contained in:
parent
c82d8b61b9
commit
22f48cfb5e
1 changed files with 2 additions and 0 deletions
|
|
@ -401,6 +401,8 @@ int can_main(int argc, FAR char *argv[])
|
|||
printf(" ID: %4u DLC: %u\n",
|
||||
rxmsg.cm_hdr.ch_id, rxmsg.cm_hdr.ch_dlc);
|
||||
|
||||
msgdlc = rxmsg.cm_hdr.ch_dlc;
|
||||
|
||||
#ifdef CONFIG_CAN_ERRORS
|
||||
/* Check for error reports */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue