Skip to content

Commit 9ebc66c

Browse files
authored
Merge pull request #27 from mROS-base/typo
fix tiny typo in variable name
2 parents 8e11632 + 7fd79cf commit 9ebc66c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mros2.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rtps::Participant *part_ptr = NULL; //TODO: detele this
1818
rtps::Writer *pub_ptr = NULL;
1919

2020
#define SUB_MSG_SIZE 4 // addr size
21-
osMessageQueueId_t subscriber_msg_gueue_id;
21+
osMessageQueueId_t subscriber_msg_queue_id;
2222

2323
bool completeNodeInit = false;
2424
uint8_t endpointId = 0;
@@ -92,8 +92,8 @@ void mros2_init(void *args)
9292

9393
#ifndef __MBED__
9494
sub_msg_count = mros2_get_submsg_count();
95-
subscriber_msg_gueue_id = osMessageQueueNew(sub_msg_count, SUB_MSG_SIZE, NULL);
96-
if (subscriber_msg_gueue_id == NULL) {
95+
subscriber_msg_queue_id = osMessageQueueNew(sub_msg_count, SUB_MSG_SIZE, NULL);
96+
if (subscriber_msg_queue_id == NULL) {
9797
MROS2_ERROR("[MROS2LIB] ERROR: mROS2 init failed");
9898
return;
9999
}
@@ -234,7 +234,7 @@ void spin()
234234
#ifndef __MBED__
235235
osStatus_t ret;
236236
SubscribeDataType* msg;
237-
ret = osMessageQueueGet(subscriber_msg_gueue_id, &msg, NULL, osWaitForever);
237+
ret = osMessageQueueGet(subscriber_msg_queue_id, &msg, NULL, osWaitForever);
238238
if (ret != osOK) {
239239
MROS2_ERROR("[MROS2LIB] ERROR: mROS2 spin() wait error %d", ret);
240240
}

0 commit comments

Comments
 (0)