updated to remove a compilation flag check as orb_exists() is already supported

This commit is contained in:
wangxdflight 2017-01-13 16:10:44 -08:00 committed by Lorenz Meier
parent b693e29d64
commit 67c3102db4

View File

@ -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);