drivers: can: shell: print raw DLC when sending frame, not bytes
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: #73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
fb4f67b775
commit
6a070ee165
1 changed files with 1 additions and 1 deletions
|
|
@ -779,7 +779,7 @@ static int cmd_can_send(const struct shell *sh, size_t argc, char **argv)
|
|||
(frame.flags & CAN_FRAME_RTR) != 0 ? 1 : 0,
|
||||
(frame.flags & CAN_FRAME_FDF) != 0 ? 1 : 0,
|
||||
(frame.flags & CAN_FRAME_BRS) != 0 ? 1 : 0,
|
||||
can_dlc_to_bytes(frame.dlc));
|
||||
frame.dlc);
|
||||
|
||||
err = can_send(dev, &frame, K_NO_WAIT, can_shell_tx_callback, UINT_TO_POINTER(frame_no));
|
||||
if (err != 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue