|
@@ -157,7 +157,7 @@ void GPS_test_wait() {
|
|
|
while (!fixObtained) {
|
|
while (!fixObtained) {
|
|
|
while (gpsSerial.available() > 0) {
|
|
while (gpsSerial.available() > 0) {
|
|
|
if (gps.encode(gpsSerial.read())) { // Procesa si hay sentencia NMEA completa
|
|
if (gps.encode(gpsSerial.read())) { // Procesa si hay sentencia NMEA completa
|
|
|
- if (gps.location.isValid() && gps.date.isValid() && gps.time.isValid() && gps.satellites.value() >= 3 && gps.hdop.value() < 50) {
|
|
|
|
|
|
|
+ if (gps.location.isValid() && gps.date.isValid() && gps.time.isValid()) {
|
|
|
fixObtained = true;
|
|
fixObtained = true;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|