mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 08:33:34 +08:00
fix MavlinkOrbSubscription: use orb_unsubscribe instead of close()
This commit is contained in:
@@ -58,7 +58,7 @@ MavlinkOrbSubscription::MavlinkOrbSubscription(const orb_id_t topic, int instanc
|
|||||||
|
|
||||||
MavlinkOrbSubscription::~MavlinkOrbSubscription()
|
MavlinkOrbSubscription::~MavlinkOrbSubscription()
|
||||||
{
|
{
|
||||||
close(_fd);
|
orb_unsubscribe(_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
orb_id_t
|
orb_id_t
|
||||||
|
|||||||
Reference in New Issue
Block a user