Skip to content

Commit

Permalink
remove spamming msgs when the received/sent msgs are not interpreted
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 committed Nov 1, 2018
1 parent fda253b commit 3ae6f18
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions msg/templates/RtpsTopics.cpp.template
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ void RtpsTopics::publish(uint8_t topic_ID, char data_buffer[], size_t len)
break;
@[end for]@
default:
printf("Unexpected topic ID to publish\n");
break;
}
}
Expand All @@ -119,18 +118,11 @@ bool RtpsTopics::hasMsg(uint8_t *topic_ID)
case @(rtps_message_id(ids, topic)): if (_@(topic)_sub.hasMsg()) *topic_ID = @(rtps_message_id(ids, topic)); break;
@[end for]@
default:
printf("Unexpected topic ID to check hasMsg\n");
break;
}
_next_sub_idx++;
}

if (0 == *topic_ID)
{
_next_sub_idx = 0;
return false;
}

return true;
}

Expand All @@ -150,7 +142,6 @@ bool RtpsTopics::getMsg(const uint8_t topic_ID, eprosima::fastcdr::Cdr &scdr)
break;
@[end for]@
default:
printf("Unexpected topic ID '%hhu' to getMsg\n", topic_ID);
break;
}

Expand Down

0 comments on commit 3ae6f18

Please sign in to comment.