allow GPS modules to redefine GPS::hasLock()

This commit is contained in:
a-f-G-U-C
2021-09-02 13:11:11 +00:00
committed by GitHub
parent 8a7a3ec668
commit 25841c072a
2 changed files with 4 additions and 2 deletions

View File

@@ -80,6 +80,8 @@ GPS::~GPS()
notifyDeepSleepObserver.unobserve();
}
bool GPS::hasLock() { return hasValidLocation; }
// Allow defining the polarity of the WAKE output. default is active high
#ifndef GPS_WAKE_ACTIVE
#define GPS_WAKE_ACTIVE 1