mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 20:53:34 +08:00
uavcan:Support runtime setting of CAN interfaces
This commit is contained in:
committed by
Daniel Agar
parent
82ab1413fc
commit
4b9e6964f4
@@ -518,7 +518,7 @@ UavcanNode::start(uavcan::NodeID node_id, uint32_t bitrate)
|
||||
|
||||
if (can == nullptr) {
|
||||
|
||||
can = new CanInitHelper();
|
||||
can = new CanInitHelper(board_get_can_interfaces());
|
||||
|
||||
if (can == nullptr) { // We don't have exceptions so bad_alloc cannot be thrown
|
||||
PX4_ERR("Out of memory");
|
||||
|
||||
Reference in New Issue
Block a user