mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/mcp2515/candev_mcp2515: remove Illegal ID error
0x1fffffff marks and extended can id.
This commit is contained in:
parent
cd21bc00da
commit
babaa6ec4a
@ -156,11 +156,6 @@ static int _send(candev_t *candev, const struct can_frame *frame)
|
||||
int ret = 0;
|
||||
enum mcp2515_mode mode;
|
||||
|
||||
if (frame->can_id > 0x1FFFFFFF) {
|
||||
DEBUG("Illegal CAN-ID!\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (mutex_trylock(&_mcp_mutex)) {
|
||||
mode = mcp2515_get_mode(dev);
|
||||
mutex_unlock(&_mcp_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user