Skip to content

Commit

Permalink
Minor fixes for very old devices
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikmohta committed Dec 12, 2017
1 parent 4570130 commit 85f46e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ublox_gps/include/ublox_gps/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class UbloxNode : public virtual ComponentInterface {
std::vector<boost::shared_ptr<ComponentInterface> > components_;

//! Determined From Mon VER
float protocol_version_;
float protocol_version_ = 0;
// Variables set from parameter server
//! Device port
std::string device_;
Expand Down
3 changes: 2 additions & 1 deletion ublox_gps/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ void UbloxNode::processMonVer() {
if(protocol_version_ < 18) {
// Final line contains supported GNSS delimited by ;
std::vector<std::string> strs;
boost::split(strs, extension[extension.size()-1], boost::is_any_of(";"));
if(extension.size() > 0)
boost::split(strs, extension[extension.size()-1], boost::is_any_of(";"));
for(size_t i = 0; i < strs.size(); i++)
supported.insert(strs[i]);
} else {
Expand Down

0 comments on commit 85f46e5

Please sign in to comment.