diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index ae92000bfc..431a871f04 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -1031,6 +1031,7 @@ GPS::run() if ((_interface == GPSHelper::Interface::UART) && (_uart)) { (void) _uart->close(); delete _uart; + _uart = nullptr; #ifdef __PX4_LINUX