modules: canopennode: switch to using can_set_mode()
Switch from using can_configure() to using can_set_mode() for disabling CAN controller transmissions. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
0a1f553dc2
commit
53f85df551
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ void CO_CANmodule_disable(CO_CANmodule_t *CANmodule)
|
|||
|
||||
canopen_detach_all_rx_filters(CANmodule);
|
||||
|
||||
err = can_configure(CANmodule->dev, CAN_SILENT_MODE, 0);
|
||||
err = can_set_mode(CANmodule->dev, CAN_SILENT_MODE);
|
||||
if (err) {
|
||||
LOG_ERR("failed to disable CAN interface (err %d)", err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue