From 67c3102db43878f6f011cebe3e7a247f3e41dc45 Mon Sep 17 00:00:00 2001 From: wangxdflight Date: Fri, 13 Jan 2017 16:10:44 -0800 Subject: [PATCH] updated to remove a compilation flag check as orb_exists() is already supported --- src/modules/mavlink/mavlink_orb_subscription.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/modules/mavlink/mavlink_orb_subscription.cpp b/src/modules/mavlink/mavlink_orb_subscription.cpp index 8c3e8704c3..30bdee6ded 100644 --- a/src/modules/mavlink/mavlink_orb_subscription.cpp +++ b/src/modules/mavlink/mavlink_orb_subscription.cpp @@ -170,16 +170,6 @@ MavlinkOrbSubscription::is_published() // We are checking now _last_pub_check = now; -#if defined(__PX4_QURT) || defined(__PX4_POSIX_EAGLE) || defined(__PX4_POSIX_EXCELSIOR) - - // Snapdragon has currently no support for orb_exists, therefore - // we're not using it. - if (_fd < 0) { - _fd = orb_subscribe_multi(_topic, _instance); - } - -#else - // We don't want to subscribe to anything that does not exist // in order to save memory and file descriptors. // However, for some topics like vehicle_command_ack, we want to subscribe @@ -192,8 +182,6 @@ MavlinkOrbSubscription::is_published() _fd = orb_subscribe_multi(_topic, _instance); } -#endif - bool updated; orb_check(_fd, &updated);