uavcan:Support runtime setting of CAN interfaces

This commit is contained in:
David Sidrane
2020-03-11 20:36:58 -04:00
committed by Daniel Agar
parent 82ab1413fc
commit 4b9e6964f4
4 changed files with 34 additions and 24 deletions
+1 -1
View File
@@ -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");