Fixed wait_for_topic and orb_exists

orb_exists was not updating the DSP topics on apps proc side

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2016-07-22 14:50:50 -07:00 committed by Lorenz Meier
parent 62a3e07423
commit b556528984
2 changed files with 2 additions and 1 deletions

View File

@ -158,6 +158,7 @@ int px4muorb_param_update_value_from_shmem(uint32_t param, const uint8_t *value,
release_shmem_lock(__FILE__, __LINE__); release_shmem_lock(__FILE__, __LINE__);
return 0; return 0;
}
int px4muorb_topic_advertised(const char *topic_name) int px4muorb_topic_advertised(const char *topic_name)
{ {

View File

@ -137,7 +137,7 @@ int uORB::Manager::orb_exists(const struct orb_metadata *meta, int instance)
#else #else
ret = px4_access(path, F_OK); ret = px4_access(path, F_OK);
if (ret == -1 && meta != nullptr && _remote_topics.size() > 0) { if (ret == -1 && meta != nullptr && _remote_topics.size() > 0) {
ret = (_remote_topics.find(meta->o_name) != _remote_topics.end()); ret = (_remote_topics.find(meta->o_name) != _remote_topics.end()) ? OK : ERROR;
} }
return ret; return ret;
#endif #endif