samples: canbus: canopen: fix argument to CO_delete()
The CANopenNode stack function CO_delete() takes a void *CANdriverState argument. This maps to a pointer to a struct canopen_context in Zephyr. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
cccb1908ac
commit
2ddb80da58
1 changed files with 1 additions and 1 deletions
|
@ -296,6 +296,6 @@ void main(void)
|
||||||
|
|
||||||
LOG_INF("Resetting device");
|
LOG_INF("Resetting device");
|
||||||
|
|
||||||
CO_delete(CAN_INTERFACE);
|
CO_delete(&can);
|
||||||
sys_reboot(SYS_REBOOT_COLD);
|
sys_reboot(SYS_REBOOT_COLD);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue