Skip to content

Commit

Permalink
Add CAN device name to address claim printout (ThingSet#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
eth1platinum authored and garethpotter committed Aug 11, 2024
1 parent f64ec72 commit a093722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/can.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ int thingset_can_init_inst(struct thingset_can *ts_can, const struct device *can
if (err_cnt_after.tx_err_cnt <= err_cnt_before.tx_err_cnt) {
/* address claiming is finished */
k_event_post(&ts_can->events, EVENT_ADDRESS_CLAIMING_FINISHED);
LOG_INF("Using CAN node address 0x%.2X", ts_can->node_addr);
LOG_INF("Using CAN node address 0x%.2X on %s", ts_can->node_addr,
ts_can->dev->name);
break;
}

Expand Down

0 comments on commit a093722

Please sign in to comment.