mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix MavlinkOrbSubscription: use orb_unsubscribe instead of close()
This commit is contained in:
parent
0eb22823a6
commit
d8fbd8a6f6
@ -58,7 +58,7 @@ MavlinkOrbSubscription::MavlinkOrbSubscription(const orb_id_t topic, int instanc
|
||||
|
||||
MavlinkOrbSubscription::~MavlinkOrbSubscription()
|
||||
{
|
||||
close(_fd);
|
||||
orb_unsubscribe(_fd);
|
||||
}
|
||||
|
||||
orb_id_t
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user