From 6b732587b9cfd02a78a0025f9c350250bef15888 Mon Sep 17 00:00:00 2001 From: Christopher Wecht Date: Thu, 3 Aug 2023 15:23:31 +0200 Subject: [PATCH] Pass parameters in the correct order to DDS_DataReader_read in rmw_connextdds_count_unread_samples for micro (#129) Signed-off-by: Christopher Wecht --- rmw_connextdds_common/src/rtime/dds_api_rtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmw_connextdds_common/src/rtime/dds_api_rtime.cpp b/rmw_connextdds_common/src/rtime/dds_api_rtime.cpp index 9110e1a9..b5ba5ca3 100644 --- a/rmw_connextdds_common/src/rtime/dds_api_rtime.cpp +++ b/rmw_connextdds_common/src/rtime/dds_api_rtime.cpp @@ -1220,8 +1220,8 @@ rmw_connextdds_count_unread_samples( &data_seq, &info_seq, DDS_LENGTH_UNLIMITED, - DDS_ANY_VIEW_STATE, DDS_NOT_READ_SAMPLE_STATE, + DDS_ANY_VIEW_STATE, DDS_ANY_INSTANCE_STATE); if (DDS_RETCODE_OK != rc && DDS_RETCODE_NO_DATA != rc) { RMW_CONNEXT_LOG_ERROR_SET("failed to read data from DDS reader")