Skip to content

Commit fcf1170

Browse files
martinjaegerstephanosio
authored andcommitted
doc: peripherals: can: fix can_filter mask variable name
The member variable was renamed from id_mask to mask in #51361, but the docs were not adjusted accordingly. Signed-off-by: Martin Jäger <[email protected]>
1 parent e03d6cf commit fcf1170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/hardware/peripherals/canbus/controller.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ The filter for this example is configured to match the identifier 0x123 exactly.
227227
const struct can_filter my_filter = {
228228
.flags = CAN_FILTER_DATA,
229229
.id = 0x123,
230-
.id_mask = CAN_STD_ID_MASK
230+
.mask = CAN_STD_ID_MASK
231231
};
232232
int filter_id;
233233
const struct device *const can_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_canbus));
@@ -250,7 +250,7 @@ The filter for this example is configured to match the extended identifier
250250
const struct can_filter my_filter = {
251251
.flags = CAN_FILTER_DATA | CAN_FILTER_IDE,
252252
.id = 0x1234567,
253-
.id_mask = CAN_EXT_ID_MASK
253+
.mask = CAN_EXT_ID_MASK
254254
};
255255
CAN_MSGQ_DEFINE(my_can_msgq, 2);
256256
struct can_frame rx_frame;

0 commit comments

Comments
 (0)