Browse Source

use multi subscribe to get topics for sdlog

sbg
Andreas Antener 9 years ago
parent
commit
f8915104e0
  1. 2
      src/modules/sdlog2/sdlog2.c

2
src/modules/sdlog2/sdlog2.c

@ -861,7 +861,7 @@ bool copy_if_updated_multi(orb_id_t topic, int multi_instance, int *handle, void
if (*handle < 0) { if (*handle < 0) {
if (OK == orb_exists(topic, multi_instance)) { if (OK == orb_exists(topic, multi_instance)) {
*handle = orb_subscribe(topic); *handle = orb_subscribe_multi(topic, multi_instance);
/* copy first data */ /* copy first data */
if (*handle >= 0) { if (*handle >= 0) {
orb_copy(topic, *handle, buffer); orb_copy(topic, *handle, buffer);

Loading…
Cancel
Save