From cdc47a2aeaa564732382d9a7d539abeda9da6b49 Mon Sep 17 00:00:00 2001 From: jessm33 <112707725+jessm33@users.noreply.github.com> Date: Tue, 5 May 2026 15:17:04 -0400 Subject: [PATCH] Fix GPS initialization logic for Portduino configuration (#10395) Co-authored-by: jessm33 --- src/gps/GPS.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index cf5511a33..814983d2f 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -1553,7 +1553,12 @@ std::unique_ptr GPS::createGps() _en_gpio = PIN_GPS_EN; #endif #ifdef ARCH_PORTDUINO - if (!portduino_config.has_gps) + if (portduino_config.has_gps) { + // These need to set as flags so later checks will pass on native and GPS will work. + // They are not used for any hardware access. + _rx_gpio = 1; + _tx_gpio = 1; + } else return nullptr; #endif if (!_rx_gpio || !_serial_gps) // Configured to have no GPS at all