Skip to content

Commit

Permalink
Extras: distance sensor don't spam when message are bounce back from FCU
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr authored and vooon committed Jul 2, 2017
1 parent 9494c26 commit 1fbac88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavros_extras/src/plugins/distance_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class DistanceSensorPlugin : public plugin::PluginBase {

auto sensor = it->second;
if (sensor->is_subscriber) {
ROS_ERROR_NAMED("distance_sensor",
ROS_ERROR_ONCE_NAMED("distance_sensor",
"DS: %s (id %d) is subscriber, but i got sensor data for that id from FCU",
sensor->topic_name.c_str(), sensor->sensor_id);
return;
Expand Down

0 comments on commit 1fbac88

Please sign in to comment.