Skip to content

Commit

Permalink
fix a couple lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rbirac committed Feb 23, 2015
1 parent fb146e4 commit 2bfc90b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int16_t Comms::receive(Registers* registers = NULL)
}

// Copy data from checksum buffer into registers, if specified.
// Note that byte-order correction (as necessary) happens at access-time.
// Note that byte-order correction (as necessary) happens at access-time
if ((data.length() > 0) && registers)
{
registers->write_raw(address, data);
Expand Down
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,10 @@ int main(int argc, char **argv)

ros::param::param<std::string>("~covariance", covariance, "0 0 0 0 0 0 0 0 0");
snprintf(cov, sizeof(cov), "%s", covariance.c_str());
ROS_INFO("cov %s", cov);

char* p = strtok_r(cov, " ", &ptr1); // point to first value
ROS_INFO("p1 = %p %s",p,p);
for (int iter = 0; iter < 9; iter++)
{
ROS_INFO("p = %p %s", p, p);
if (p) covar[iter] = atof(p); // covar[] is global var
else covar[iter] = 0.0;
p = strtok_r(NULL, " ", &ptr1); // point to next value (nil if none)
Expand Down

0 comments on commit 2bfc90b

Please sign in to comment.