|
57 | 57 | #define GET_TOPIC_DESCRIPTION(dr) dr->get_topicdescription() |
58 | 58 | #endif |
59 | 59 | #ifndef ADD_PARTITION |
60 | | -#if defined(RTI_CONNEXT_MICRO) |
61 | | -#define ADD_PARTITION(field, value) |
62 | | -#else |
63 | 60 | #define ADD_PARTITION(field, value) StringSeq_push(field.name, value) |
64 | 61 | #endif |
65 | | -#endif |
66 | 62 |
|
67 | 63 | using namespace DDS; |
68 | 64 |
|
@@ -857,9 +853,9 @@ class ShapeApplication { |
857 | 853 | pub->get_default_datawriter_qos( dw_qos ); |
858 | 854 |
|
859 | 855 | #if defined (RTI_CONNEXT_MICRO) |
860 | | - dw_qos.resource_limits.max_instances = 500; |
861 | | - dw_qos.resource_limits.max_samples = 500; |
862 | | - dw_qos.resource_limits.max_samples_per_instance = 500; |
| 856 | + dw_qos.resource_limits.max_instances = 500; |
| 857 | + dw_qos.resource_limits.max_samples = 500; |
| 858 | + dw_qos.resource_limits.max_samples_per_instance = 500; |
863 | 859 | #endif |
864 | 860 |
|
865 | 861 | dw_qos.reliability FIELD_ACCESSOR.kind = options->reliability_kind; |
@@ -922,7 +918,12 @@ class ShapeApplication { |
922 | 918 | dw_qos.history FIELD_ACCESSOR.depth = options->history_depth; |
923 | 919 | } |
924 | 920 | else if ( options->history_depth == 0 ) { |
| 921 | +#if defined (RTI_CONNEXT_MICRO) |
| 922 | + dw_qos.history FIELD_ACCESSOR.kind = KEEP_LAST_HISTORY_QOS; |
| 923 | + dw_qos.history FIELD_ACCESSOR.depth = 500; |
| 924 | +#else |
925 | 925 | dw_qos.history FIELD_ACCESSOR.kind = KEEP_ALL_HISTORY_QOS; |
| 926 | +#endif |
926 | 927 | } |
927 | 928 | logger.log_message(" History = " + QosUtils::to_string(dw_qos.history FIELD_ACCESSOR.kind), Verbosity::DEBUG); |
928 | 929 | if (dw_qos.history FIELD_ACCESSOR.kind == KEEP_LAST_HISTORY_QOS){ |
@@ -975,11 +976,11 @@ class ShapeApplication { |
975 | 976 | sub->get_default_datareader_qos( dr_qos ); |
976 | 977 |
|
977 | 978 | #if defined (RTI_CONNEXT_MICRO) |
978 | | - dr_qos.resource_limits.max_instances = 500; |
979 | | - dr_qos.resource_limits.max_samples = 500; |
980 | | - dr_qos.resource_limits.max_samples_per_instance = 500; |
981 | | - dr_qos.reader_resource_limits.max_remote_writers = 2; |
982 | | - dr_qos.reader_resource_limits.max_samples_per_remote_writer = 500; |
| 979 | + dr_qos.resource_limits.max_instances = 500; |
| 980 | + dr_qos.resource_limits.max_samples = 500; |
| 981 | + dr_qos.resource_limits.max_samples_per_instance = 500; |
| 982 | + dr_qos.reader_resource_limits.max_remote_writers = 2; |
| 983 | + dr_qos.reader_resource_limits.max_samples_per_remote_writer = 500; |
983 | 984 | #endif |
984 | 985 |
|
985 | 986 | dr_qos.reliability FIELD_ACCESSOR.kind = options->reliability_kind; |
|
0 commit comments