Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dereference boost::optional value for output, closes #6
  • Loading branch information
racecar authored and racecar committed Jan 8, 2017
1 parent 6805190 commit 5127d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vesc_driver/src/vesc_driver.cpp
Expand Up @@ -271,8 +271,8 @@ VescDriver::CommandLimit::CommandLimit(const ros::NodeHandle& nh, const std::str

// check for min > max
if (upper && lower && *lower > *upper) {
ROS_WARN_STREAM("Parameter " << name << "_max (" << upper
<< ") is less than parameter " << name << "_min (" << lower << ").");
ROS_WARN_STREAM("Parameter " << name << "_max (" << *upper
<< ") is less than parameter " << name << "_min (" << *lower << ").");
double temp(*lower);
lower = *upper;
upper = temp;
Expand Down

0 comments on commit 5127d60

Please sign in to comment.