Skip to content

Commit

Permalink
drivers/can: Remove CAN_FILTER_DATA on zephyr
Browse files Browse the repository at this point in the history
In Zephyr, with PR below, `CAN_FILTER_DATA` and `CAN_FILTER_RTR`
have been removed.

  - zephyrproject-rtos/zephyr#67127

Originally, `CAN_FILTER_DATA` was specified explicitly to filter CAN
Data Frames, but in reality, in the Zephyr driver, it is possible
to filter CAN Data Frames without specifying `CAN_FILTER_DATA`.
Therefore, in this commit, `CAN_FILTER_DATA` is removed.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
  • Loading branch information
sasataku committed Jan 24, 2024
1 parent 98103db commit 15625a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/can/can_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ int csp_can_set_rx_filter(csp_iface_t * iface, uint16_t filter_addr, uint16_t fi

int ret;
struct can_filter filter = {
.flags = CAN_FILTER_DATA | CAN_FILTER_IDE,
.flags = CAN_FILTER_IDE,
};
can_context_t * ctx;

Expand Down

0 comments on commit 15625a2

Please sign in to comment.