UAVCAN sensor enable command fix

This commit is contained in:
Pavel Kirienko 2014-08-22 13:58:05 +04:00
parent f820010a2b
commit 54affaf633
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}