From f4a42cfcb3038b816e3044767d1d42b17764d610 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 5 Jan 2024 05:20:05 -0500 Subject: [PATCH] fixed start in gps --- .../Payload_BME280_MPU6050_XS/Payload_BME280_MPU6050_XS.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stempayload/Payload_BME280_MPU6050_XS/Payload_BME280_MPU6050_XS.ino b/stempayload/Payload_BME280_MPU6050_XS/Payload_BME280_MPU6050_XS.ino index 52efddd8..68c7a3c0 100644 --- a/stempayload/Payload_BME280_MPU6050_XS/Payload_BME280_MPU6050_XS.ino +++ b/stempayload/Payload_BME280_MPU6050_XS/Payload_BME280_MPU6050_XS.ino @@ -544,9 +544,10 @@ bool check_for_wifi() { void get_gps() { bool newData = false; - unsigned long starting = millis(); + unsigned long start = millis(); - for (unsigned long start = millis(); millis() - start < 1000;) // 5000;) +// for (unsigned long start = millis(); millis() - start < 1000;) // 5000;) + while ((millis() - start) < 1000) // 5000;) { while (Serial2.available()) {