mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 09:06:02 +00:00
Possible fix for use of pin 0 as PIN_GPS_EN
This commit is contained in:
parent
bd2d2981c9
commit
7724466531
@ -1370,7 +1370,7 @@ GPS *GPS::createGps()
|
||||
|
||||
GpioVirtPin *virtPin = new GpioVirtPin();
|
||||
new_gps->enablePin = virtPin; // Always at least populate a virtual pin
|
||||
if (_en_gpio) {
|
||||
#if defined(PIN_GPS_EN)
|
||||
GpioPin *p = new GpioHwPin(_en_gpio);
|
||||
|
||||
if (!GPS_EN_ACTIVE) { // Need to invert the pin before hardware
|
||||
@ -1382,7 +1382,7 @@ GPS *GPS::createGps()
|
||||
virtPin,
|
||||
p); // We just leave this created object on the heap so it can stay watching virtPin and driving en_gpio
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PIN_GPS_PPS
|
||||
// pulse per second
|
||||
|
Loading…
Reference in New Issue
Block a user