mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
TAP ESC: Correct use of unsubscribe
This commit is contained in:
committed by
Lorenz Meier
parent
97ce9edcac
commit
3532b48411
@@ -378,7 +378,7 @@ TAP_ESC::subscribe()
|
||||
|
||||
if (unsub_groups & (1 << i)) {
|
||||
DEVICE_DEBUG("unsubscribe from actuator_controls_%d", i);
|
||||
::close(_control_subs[i]);
|
||||
orb_unsubscribe(_control_subs[i]);
|
||||
_control_subs[i] = -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user