fix #1762, add timeout on ubloxRaw receive

This commit is contained in:
Willem Melching
2020-06-23 15:26:25 -07:00
parent 99949cc27d
commit 0842e98ad8
+1 -1
View File
@@ -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;
}