diff --git a/src/comms.cpp b/src/comms.cpp index 2357878..c9134c3 100644 --- a/src/comms.cpp +++ b/src/comms.cpp @@ -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); diff --git a/src/main.cpp b/src/main.cpp index 188856d..9e2c862 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -306,13 +306,10 @@ int main(int argc, char **argv) ros::param::param("~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)