px4io only update params and bind if not armed

This commit is contained in:
Daniel Agar
2017-12-06 10:08:00 +00:00
committed by Lorenz Meier
parent f748b38b3a
commit 8d39f4e4a1
+1 -1
View File
@@ -994,7 +994,7 @@ PX4IO::task_main()
}
}
if (now >= orb_check_last + ORB_CHECK_INTERVAL) {
if (!_armed && (now >= orb_check_last + ORB_CHECK_INTERVAL)) {
/* run at 5Hz */
orb_check_last = now;