diff --git a/firmware/Weather_Shield_Weather_Station/Weather_Shield_Weather_Station.ino b/firmware/Weather_Shield_Weather_Station/Weather_Shield_Weather_Station.ino index 94bc117..091b5c7 100644 --- a/firmware/Weather_Shield_Weather_Station/Weather_Shield_Weather_Station.ino +++ b/firmware/Weather_Shield_Weather_Station/Weather_Shield_Weather_Station.ino @@ -176,6 +176,7 @@ void loop() //Calc the wind speed and direction every second for 120 second to get 2 minute average float currentSpeed = get_wind_speed(); + windspeedmph = currentSpeed; //update global variable for windspeed when using the printWeather() function //float currentSpeed = random(5); //For testing int currentDirection = get_wind_direction(); windspdavg[seconds_2m] = (int)currentSpeed; @@ -223,7 +224,7 @@ void calcWeather() winddir = get_wind_direction(); //Calc windspeed - //windspeedmph = get_wind_speed(); //This is calculated in the main loop + //windspeedmph = get_wind_speed(); //This is calculated in the main loop on line 179 //Calc windgustmph //Calc windgustdir diff --git a/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino b/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino index ddb733c..57c8b29 100644 --- a/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino +++ b/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino @@ -442,7 +442,7 @@ void printWeather() Serial.print(",lat="); Serial.print(gps.location.lat(), 6); - Serial.print(",lat="); + Serial.print(",lng="); Serial.print(gps.location.lng(), 6); Serial.print(",altitude="); Serial.print(gps.altitude.meters());