Browse Source

TAP ESC: Correct use of unsubscribe

sbg
Lorenz Meier 8 years ago committed by Lorenz Meier
parent
commit
3532b48411
  1. 2
      src/drivers/tap_esc/tap_esc.cpp

2
src/drivers/tap_esc/tap_esc.cpp

@ -378,7 +378,7 @@ TAP_ESC::subscribe() @@ -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;
}

Loading…
Cancel
Save