UAVCANv1 port unset fixes and deinitialization

This commit is contained in:
Peter van der Perk
2021-06-17 10:02:17 -04:00
committed by Daniel Agar
parent 1c3f30be01
commit b2742658b7
8 changed files with 39 additions and 18 deletions
+2 -2
View File
@@ -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);