Skip to content

Commit b727446

Browse files
henrikbrixandersenlaurenmurphyx64
authored andcommitted
samples: canbus: isotp: add missing call to can_start()
Add missing call to can_start(). Fixes: #54078 Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 37665b5 commit b727446

File tree

1 file changed

+6
-0
lines changed
  • samples/subsys/canbus/isotp/src

1 file changed

+6
-0
lines changed

samples/subsys/canbus/isotp/src/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ void main(void)
154154
return;
155155
}
156156

157+
ret = can_start(can_dev);
158+
if (ret != 0) {
159+
printk("CAN: Failed to start device [%d]\n", ret);
160+
return;
161+
}
162+
157163
tid = k_thread_create(&rx_8_0_thread_data, rx_8_0_thread_stack,
158164
K_THREAD_STACK_SIZEOF(rx_8_0_thread_stack),
159165
rx_8_0_thread, NULL, NULL, NULL,

0 commit comments

Comments
 (0)