aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/gps_ctrl.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}