mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
UAVCAN sensor enable command fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user