From 863953d972f19f38fb82eb17d1fe923a0337b0ed Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 12 Jun 2014 16:07:42 -0700 Subject: - Changed variables from uint8_t to uint32_t so parsing of hex strings would work properly. --- host/lib/usrp/gps_ctrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host') diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp index 3d7684849..6b3f73cf6 100644 --- a/host/lib/usrp/gps_ctrl.cpp +++ b/host/lib/usrp/gps_ctrl.cpp @@ -69,8 +69,8 @@ private: return false; std::stringstream ss; - boost::uint8_t string_crc; - boost::uint8_t calculated_crc = 0; + boost::uint32_t string_crc; + boost::uint32_t calculated_crc = 0; // get crc from string ss << std::hex << nmea.substr(nmea.length()-2, 2); @@ -114,7 +114,7 @@ private: { msgs["SERVO"] = msg; } - else if (boost::regex_match(msg, gp_msg_regex) && is_nmea_checksum_ok(msg)) + else if (boost::regex_match(msg, gp_msg_regex) and is_nmea_checksum_ok(msg)) { msgs[msg.substr(1,5)] = msg; } -- cgit v1.2.3