This commit is contained in:
Marco Veneziano 2025-04-19 16:38:20 -04:00 committed by GitHub
commit 804a3b1347
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1404,7 +1404,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
@ -1416,7 +1416,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