aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-10 20:57:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-03-10 20:57:47 +0100
commit37280c6ff8d42a18d3e4471e4dfe7ab5c050d36f (patch)
tree411fc52153622a1041bae84abf02b28aaca3c960 /host/lib
parent8e014a2e4b393fc388f7d64e99e13559267b8dc9 (diff)
downloaduhd-37280c6ff8d42a18d3e4471e4dfe7ab5c050d36f.tar.gz
uhd-37280c6ff8d42a18d3e4471e4dfe7ab5c050d36f.tar.bz2
uhd-37280c6ff8d42a18d3e4471e4dfe7ab5c050d36f.zip
Don't use extended initialiser lists in gps_ctrl
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/gps_ctrl.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp
index 12237ff43..990005c93 100644
--- a/host/lib/usrp/gps_ctrl.cpp
+++ b/host/lib/usrp/gps_ctrl.cpp
@@ -253,7 +253,9 @@ private:
std::map<std::string,std::string> msgs;
if (_gps_type == GPS_TYPE_LEA_M8F) {
- keys = {"GNGGA", "GNRMC", "TIMELOCK"};
+ keys.push_back("GNGGA");
+ keys.push_back("GNRMC");
+ keys.push_back("TIMELOCK");
// Concatenate all incoming data into the deque
for (std::string msg = _recv(); msg.length() > 0; msg = _recv())
@@ -336,7 +338,9 @@ private:
}
}
else {
- keys = {"GPGGA", "GPRMC", "SERVO"};
+ keys.push_back("GPGGA");
+ keys.push_back("GPRMC");
+ keys.push_back("SERVO");
static const boost::regex servo_regex("^\\d\\d-\\d\\d-\\d\\d.*$");
static const boost::regex gp_msg_regex("^\\$GP.*,\\*[0-9A-F]{2}$");