From ae389ed0e3f7a651284d1696193d2e6f4684c91a Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 13 Jun 2018 09:23:08 -1000 Subject: [PATCH] Revert "gps: reopen the gps port on failed auto-detection" This reverts commit a62a71f48f3d40bba6e9af114a185f6bbad849b1. The root cause was the camera trigger passing invalid pin configuration setting overwriting the UART4 TX pin setting --- src/drivers/gps/gps.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index 36f7a9607b..b6a108795f 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -787,17 +787,6 @@ GPS::run() case GPS_DRIVER_MODE_ASHTECH: _mode = GPS_DRIVER_MODE_UBX; usleep(500000); // tried all possible drivers. Wait a bit before next round - - //FIXME: reopen the uart to work around an issue where the gps is not detected - // sometimes on startup on the mRo X2.1 board (see https://github.com/PX4/Firmware/issues/9461) - close(_serial_fd); - _serial_fd = ::open(_port, O_RDWR | O_NOCTTY); - - if (_serial_fd < 0) { - PX4_ERR("failed to reopen the UART (%i)", errno); - request_stop(); - } - break; default: