mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps: fix style issues in code
Add missing FAR and CODE to pointers
Remove FAR for non-pointer variables
Remove extra spaces and align the parameters
Add do {} while(0) wrapper in macro
Use nitems to calculate number of elements in arrays
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
f4d3e549b6
commit
aed0e2873e
35 changed files with 615 additions and 514 deletions
|
|
@ -92,10 +92,10 @@ int obd_wait_response(FAR struct obd_dev_s *dev, uint8_t opmode, uint8_t pid,
|
|||
return -EAGAIN;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
#ifdef CONFIG_DEBUG_INFO
|
||||
printf(" ID: %4u DLC: %u\n",
|
||||
dev->can_rxmsg.cm_hdr.ch_id, dev->can_rxmsg.cm_hdr.ch_dlc);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
msgdlc = dev->can_rxmsg.cm_hdr.ch_dlc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue