forked from Archive/PX4-Autopilot
UAVCAN sensor enable command fix
This commit is contained in:
parent
f820010a2b
commit
54affaf633
|
@ -558,6 +558,8 @@ int UavcanNode::sensor_enable(const char *bridge_name)
|
|||
retval = bridge->init();
|
||||
if (retval >= 0) {
|
||||
_sensor_bridges.add(bridge);
|
||||
} else {
|
||||
delete bridge;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue