Skip to content

Commit

Permalink
CAN: correct callback
Browse files Browse the repository at this point in the history
  • Loading branch information
garethpotter committed Aug 11, 2024
1 parent 39bf2f8 commit 7b547a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/can.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,7 @@ int thingset_can_init_inst(struct thingset_can *ts_can, const struct device *can
| THINGSET_CAN_RAND_SET(rand) | THINGSET_CAN_TARGET_SET(ts_can->node_addr)
| THINGSET_CAN_SOURCE_SET(THINGSET_CAN_ADDR_ANONYMOUS);
tx_frame.dlc = 0;
err = can_send(ts_can->dev, &tx_frame, K_MSEC(10), thingset_can_addr_claim_tx_handler,
ts_can);
err = can_send(ts_can->dev, &tx_frame, K_MSEC(10), thingset_can_addr_claim_tx_cb, ts_can);
if (err != 0) {
k_sleep(K_MSEC(100));
continue;
Expand Down

0 comments on commit 7b547a7

Please sign in to comment.