TAP ESC: Correct use of unsubscribe

This commit is contained in:
Lorenz Meier
2016-12-18 13:55:20 +01:00
committed by Lorenz Meier
parent 97ce9edcac
commit 3532b48411
+1 -1
View File
@@ -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;
}