mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
fix #1762, add timeout on ubloxRaw receive
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user