mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 07:21:36 +08:00
UAVCANv1 port unset fixes and deinitialization
This commit is contained in:
committed by
Daniel Agar
parent
1c3f30be01
commit
b2742658b7
@@ -95,8 +95,6 @@ UavcanNode::UavcanNode(CanardInterface *interface, uint32_t node_id) :
|
||||
|
||||
UavcanNode::~UavcanNode()
|
||||
{
|
||||
delete _can_interface;
|
||||
|
||||
if (_instance) {
|
||||
/* tell the task we want it to go away */
|
||||
_task_should_exit.store(true);
|
||||
@@ -115,6 +113,8 @@ UavcanNode::~UavcanNode()
|
||||
} while (_instance);
|
||||
}
|
||||
|
||||
delete _can_interface;
|
||||
|
||||
perf_free(_cycle_perf);
|
||||
perf_free(_interval_perf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user