land_detector: move _parameterSub to the right place

This commit is contained in:
Beat Küng
2018-09-28 16:04:40 +02:00
committed by Lorenz Meier
parent b69dd50d90
commit 465d399e8f
3 changed files with 4 additions and 4 deletions
@@ -105,6 +105,7 @@ void LandDetector::_cycle()
// Initialize uORB topics.
_armingSub = orb_subscribe(ORB_ID(actuator_armed));
_parameterSub = orb_subscribe(ORB_ID(parameter_update));
_initialize_topics();
_check_params(true);