drivers: CAN: Limit the DLC to 8
This commit limits the data length code to eight. DLC > 8 returns a newly introduced CAN_TX_EINVAL error code. Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
This commit is contained in:
parent
4fc6a04eb1
commit
d558fd055a
6 changed files with 40 additions and 2 deletions
|
@ -47,6 +47,9 @@ extern "C" {
|
|||
/** unexpected error */
|
||||
#define CAN_TX_UNKNOWN (-5)
|
||||
|
||||
/** invalid parameter */
|
||||
#define CAN_TX_EINVAL (-22)
|
||||
|
||||
/** attach_* failed because there is no unused filter left*/
|
||||
#define CAN_NO_FREE_FILTER (-1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue