mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:43:34 +08:00
orb_exists support for muorb
Also added builtin command wait_for_topic Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Lorenz Meier
parent
dc787830b5
commit
62a3e07423
@@ -928,16 +928,7 @@ bool copy_if_updated_multi(orb_id_t topic, int multi_instance, int *handle, void
|
||||
bool updated = false;
|
||||
|
||||
if (*handle < 0) {
|
||||
#if __PX4_POSIX_EAGLE
|
||||
// The orb_exists call doesn't work correctly on Snapdragon yet.
|
||||
// (No data gets sent from the QURT to the Linux side because there
|
||||
// are no subscribers. However, there won't be any subscribers, if
|
||||
// they check using orb_exists() before subscribing.)
|
||||
if (true)
|
||||
#else
|
||||
if (OK == orb_exists(topic, multi_instance))
|
||||
#endif
|
||||
|
||||
{
|
||||
*handle = orb_subscribe_multi(topic, multi_instance);
|
||||
/* copy first data */
|
||||
|
||||
Reference in New Issue
Block a user