Skip to content

Commit

Permalink
camera_feedback: remove unused class member & call orb_unsubscribe()
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng committed Aug 13, 2018
1 parent 7c0743b commit 765433b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/modules/camera_feedback/camera_feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ CameraFeedback::task_main()

}

PX4_INFO("Exiting.");
orb_unsubscribe(_trigger_sub);
orb_unsubscribe(_gpos_sub);
orb_unsubscribe(_att_sub);

_main_task = -1;

}
Expand Down
1 change: 0 additions & 1 deletion src/modules/camera_feedback/camera_feedback.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ class CameraFeedback
int _main_task; /**< handle for task */

int _trigger_sub;
int _lpos_sub;
int _gpos_sub;
int _att_sub;

Expand Down

0 comments on commit 765433b

Please sign in to comment.