summaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-04-09 20:34:23 -0500
committerJosh Blum <josh@joshknows.com>2013-04-09 20:34:23 -0500
commit31f0e964aa54a2c8e4d299432513623d2c49bbf0 (patch)
treeb6005df7b94692523a09e110d30812c8f595a574 /host/lib
parent417a70fee7d80cd13e509c4460c9fd5b0bdca8b9 (diff)
downloaduhd-31f0e964aa54a2c8e4d299432513623d2c49bbf0.tar.gz
uhd-31f0e964aa54a2c8e4d299432513623d2c49bbf0.tar.bz2
uhd-31f0e964aa54a2c8e4d299432513623d2c49bbf0.zip
gps: flush uart buffer before waiting for time
This addresses a bug only on the master branch. Also turn off the servo sensor, its too long a delay. We will need to conditionally enable this in a later commit.
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/gps_ctrl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/gps_ctrl.cpp b/host/lib/usrp/gps_ctrl.cpp
index 917f115f3..8c177382a 100644
--- a/host/lib/usrp/gps_ctrl.cpp
+++ b/host/lib/usrp/gps_ctrl.cpp
@@ -201,7 +201,7 @@ private:
sleep(milliseconds(FIREFLY_STUPID_DELAY_MS));
_send("GPS:GPRMC 1\n");
sleep(milliseconds(FIREFLY_STUPID_DELAY_MS));
- _send("SERV:TRAC 1\n"); // enable servo trace message
+ _send("SERV:TRAC 0\n");
sleep(milliseconds(FIREFLY_STUPID_DELAY_MS));
}
@@ -240,6 +240,7 @@ private:
}
ptime get_time(void) {
+ _flush();
int error_cnt = 0;
ptime gps_time;
while(error_cnt < 2) {