Fix GPS initialization logic for Portduino configuration (#10395)

Co-authored-by: jessm33 <root@example.com>
This commit is contained in:
jessm33
2026-05-05 17:28:22 -05:00
committed by Ben Meadors
co-authored by Ben Meadors jessm33
parent 603cce2988
commit 6e810741f3
+6 -1
View File
@@ -1548,7 +1548,12 @@ std::unique_ptr<GPS> 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