mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +08:00
GPS: Do not use nonblocking access
This commit is contained in:
@@ -643,13 +643,6 @@ GPS::task_main()
|
||||
px4_task_exit(1);
|
||||
}
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
// TODO: this call is not supported on Snapdragon just yet.
|
||||
// However it seems to be nonblocking anyway and working.
|
||||
int flags = fcntl(_serial_fd, F_GETFL, 0);
|
||||
fcntl(_serial_fd, F_SETFL, flags | O_NONBLOCK);
|
||||
#endif
|
||||
|
||||
_orb_inject_data_fd = orb_subscribe(ORB_ID(gps_inject_data));
|
||||
|
||||
initializeCommunicationDump();
|
||||
|
||||
Reference in New Issue
Block a user