Fix GPS initialization logic for Portduino configuration (#10395)
Co-authored-by: jessm33 <root@example.com>
This commit is contained in:
committed by
Ben Meadors
co-authored by
Ben Meadors
jessm33
parent
603cce2988
commit
6e810741f3
+6
-1
@@ -1548,7 +1548,12 @@ std::unique_ptr<GPS> GPS::createGps()
|
|||||||
_en_gpio = PIN_GPS_EN;
|
_en_gpio = PIN_GPS_EN;
|
||||||
#endif
|
#endif
|
||||||
#ifdef ARCH_PORTDUINO
|
#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;
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (!_rx_gpio || !_serial_gps) // Configured to have no GPS at all
|
if (!_rx_gpio || !_serial_gps) // Configured to have no GPS at all
|
||||||
|
|||||||
Reference in New Issue
Block a user