mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
net/can: allow errmask to be set to CAN_ERR_FLAG;
For the LIN protocol, the error frame ID can be 0. This change is to ensure that all LIN error frames can pass the filter. Signed-off-by: wangjinjing1 <wangjinjing1@xiaomi.com>
This commit is contained in:
@@ -133,7 +133,7 @@ int can_setsockopt(FAR struct socket *psock, int level, int option,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
conn->err_mask = *(FAR can_err_mask_t *)value & CAN_ERR_MASK;
|
||||
conn->err_mask = *(FAR can_err_mask_t *)value;
|
||||
break;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user