use multi subscribe to get topics for sdlog

This commit is contained in:
Andreas Antener
2016-02-12 11:58:39 +01:00
parent 590e8df8d0
commit f8915104e0
+1 -1
View File
@@ -861,7 +861,7 @@ bool copy_if_updated_multi(orb_id_t topic, int multi_instance, int *handle, void
if (*handle < 0) {
if (OK == orb_exists(topic, multi_instance)) {
*handle = orb_subscribe(topic);
*handle = orb_subscribe_multi(topic, multi_instance);
/* copy first data */
if (*handle >= 0) {
orb_copy(topic, *handle, buffer);