uORB: SubscriptionCallback cleanup naming

This commit is contained in:
Daniel Agar
2019-06-29 13:27:05 -04:00
parent 3f9b3fb4da
commit fd67bd0680
9 changed files with 29 additions and 28 deletions
@@ -120,7 +120,7 @@ FixedwingPositionControl::~FixedwingPositionControl()
bool
FixedwingPositionControl::init()
{
if (!_global_pos_sub.register_callback()) {
if (!_global_pos_sub.registerCallback()) {
PX4_ERR("vehicle global position callback registration failed!");
return false;
}
@@ -1651,7 +1651,7 @@ void
FixedwingPositionControl::Run()
{
if (should_exit()) {
_global_pos_sub.unregister_callback();
_global_pos_sub.unregisterCallback();
exit_and_cleanup();
return;
}