mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
can: j1939: swap addr and pgn in the send example
The address was wrongly assigned to the PGN field and vice versa.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Link: https://lore.kernel.org/r/20201022083708.8755-1-yegorslists@googlemail.com
Fixes: 9d71dd0c70
("can: add support of SAE J1939 protocol")
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
864a2756d3
commit
ea780d39b1
@ -414,8 +414,8 @@ Send:
|
|||||||
.can_family = AF_CAN,
|
.can_family = AF_CAN,
|
||||||
.can_addr.j1939 = {
|
.can_addr.j1939 = {
|
||||||
.name = J1939_NO_NAME;
|
.name = J1939_NO_NAME;
|
||||||
.pgn = 0x30,
|
.addr = 0x30,
|
||||||
.addr = 0x12300,
|
.pgn = 0x12300,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user