|
@@ -194,8 +194,9 @@ void task_mediciones(void *pvParameters) {
|
|
|
unsigned long startMillis = millis();
|
|
unsigned long startMillis = millis();
|
|
|
// se leen los valores antes de utilizar el semaphore
|
|
// se leen los valores antes de utilizar el semaphore
|
|
|
while (gpsSerial.available() > 0) {
|
|
while (gpsSerial.available() > 0) {
|
|
|
- char c = gpsSerial.read();
|
|
|
|
|
- Serial.print(c);
|
|
|
|
|
|
|
+ if (gps.encode(gpsSerial.read())) {
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
float new_latitude = gps.location.lat();
|
|
float new_latitude = gps.location.lat();
|