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 57c8b2954906393222ce3ce324c63128555c731c..b003fc12990c2471308aacb4a8599d7027bf0e08 100644 --- a/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino +++ b/firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino @@ -190,6 +190,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; @@ -249,7 +250,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 193 //Calc windgustmph //Calc windgustdir @@ -463,4 +464,3 @@ void printWeather() } -