fix: doc: canbus: fix tx callback function name typo in code snippet
In the `can_send()` example code snippet, it passed the `can_tx_callback_t` parameter as `tx_irq_callback` even though the function name was previously defined in the snippet as `tx_callback`. The parameter passed has been updated to `tx_callback` to maintain consistency with existing code. Signed-off-by: Kush Nayak <kushnayak123@gmail.com>
This commit is contained in:
parent
94cfb8dbcf
commit
40b6e65782
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ occurred. It does not block until the message is sent like the example above.
|
|||
frame.data[0] = 1;
|
||||
frame.data[1] = 2;
|
||||
|
||||
return can_send(can_dev, &frame, K_FOREVER, tx_irq_callback, "Sender 1");
|
||||
return can_send(can_dev, &frame, K_FOREVER, tx_callback, "Sender 1");
|
||||
}
|
||||
|
||||
Receiving
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue