File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 5
5
extern "C" {
6
6
#endif
7
7
8
- extern int mros2_get_submsg_count ( void );
8
+ #define SUB_MSG_COUNT 10
9
9
10
10
#ifdef __cplusplus
11
11
}
Original file line number Diff line number Diff line change 1
1
#include " mros2.h"
2
- #include " mros2_user_config.h"
3
2
4
3
#include < rtps/rtps.h>
5
4
6
5
#ifdef __MBED__
7
6
#include " mbed.h"
8
7
#else /* __MBED__ */
8
+ #include " mros2_config.h"
9
9
#include " cmsis_os.h"
10
10
#endif /* __MBED__ */
11
11
@@ -90,8 +90,7 @@ void mros2_init(void *args)
90
90
domain_ptr = &domain;
91
91
92
92
#ifndef __MBED__
93
- int sub_msg_count = mros2_get_submsg_count ();
94
- subscriber_msg_queue_id = osMessageQueueNew (sub_msg_count, SUB_MSG_SIZE, NULL );
93
+ subscriber_msg_queue_id = osMessageQueueNew (SUB_MSG_COUNT, SUB_MSG_SIZE, NULL );
95
94
if (subscriber_msg_queue_id == NULL ) {
96
95
MROS2_ERROR (" [MROS2LIB] ERROR: mROS2 init failed" );
97
96
return ;
You can’t perform that action at this time.
0 commit comments