Skip to content

Commit

Permalink
Merge pull request #27 from mROS-base/typo
Browse files Browse the repository at this point in the history
fix tiny typo in variable name
  • Loading branch information
takasehideki authored Feb 22, 2022
2 parents 8e11632 + 7fd79cf commit 9ebc66c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mros2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rtps::Participant *part_ptr = NULL; //TODO: detele this
rtps::Writer *pub_ptr = NULL;

#define SUB_MSG_SIZE 4 // addr size
osMessageQueueId_t subscriber_msg_gueue_id;
osMessageQueueId_t subscriber_msg_queue_id;

bool completeNodeInit = false;
uint8_t endpointId = 0;
Expand Down Expand Up @@ -92,8 +92,8 @@ void mros2_init(void *args)

#ifndef __MBED__
sub_msg_count = mros2_get_submsg_count();
subscriber_msg_gueue_id = osMessageQueueNew(sub_msg_count, SUB_MSG_SIZE, NULL);
if (subscriber_msg_gueue_id == NULL) {
subscriber_msg_queue_id = osMessageQueueNew(sub_msg_count, SUB_MSG_SIZE, NULL);
if (subscriber_msg_queue_id == NULL) {
MROS2_ERROR("[MROS2LIB] ERROR: mROS2 init failed");
return;
}
Expand Down Expand Up @@ -234,7 +234,7 @@ void spin()
#ifndef __MBED__
osStatus_t ret;
SubscribeDataType* msg;
ret = osMessageQueueGet(subscriber_msg_gueue_id, &msg, NULL, osWaitForever);
ret = osMessageQueueGet(subscriber_msg_queue_id, &msg, NULL, osWaitForever);
if (ret != osOK) {
MROS2_ERROR("[MROS2LIB] ERROR: mROS2 spin() wait error %d", ret);
}
Expand Down

0 comments on commit 9ebc66c

Please sign in to comment.