mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
thinknode_m5: gps support
This commit is contained in:
parent
ee4e87c3ee
commit
1c0017b634
8 changed files with 53 additions and 15 deletions
|
|
@ -548,7 +548,11 @@ void EnvironmentSensorManager::initBasicGPS() {
|
|||
delay(1000);
|
||||
|
||||
// We'll consider GPS detected if we see any data on Serial1
|
||||
#ifdef ENV_SKIP_GPS_DETECT
|
||||
gps_detected = true;
|
||||
#else
|
||||
gps_detected = (Serial1.available() > 0);
|
||||
#endif
|
||||
|
||||
if (gps_detected) {
|
||||
MESH_DEBUG_PRINTLN("GPS detected");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue