From cc4b6c2c3315358f9621e496c2d7da3a41b00dd5 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Tue, 23 Jun 2020 15:26:25 -0700 Subject: [PATCH] fix #1762, add timeout on ubloxRaw receive old-commit-hash: 0842e98ad832ec5dbd1afe1bfda5893c21aa1ef6 --- selfdrive/locationd/ubloxd_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/locationd/ubloxd_main.cc b/selfdrive/locationd/ubloxd_main.cc index 8e6007a75c..690f4449f9 100644 --- a/selfdrive/locationd/ubloxd_main.cc +++ b/selfdrive/locationd/ubloxd_main.cc @@ -41,7 +41,7 @@ int ubloxd_main(poll_ubloxraw_msg_func poll_func, send_gps_event_func send_func) PubMaster pm({"ubloxGnss", "gpsLocationExternal"}); while (!do_exit) { - Message * msg = subscriber->receive(); + Message * msg = subscriber->receive(100); if (!msg){ continue; }