File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Weather_Shield_Weather_Station Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ void loop()
176176
177177 // Calc the wind speed and direction every second for 120 second to get 2 minute average
178178 float currentSpeed = get_wind_speed ();
179+ windspeedmph = currentSpeed; // update global variable for windspeed when using the printWeather() function
179180 // float currentSpeed = random(5); //For testing
180181 int currentDirection = get_wind_direction ();
181182 windspdavg[seconds_2m] = (int )currentSpeed;
@@ -223,7 +224,7 @@ void calcWeather()
223224 winddir = get_wind_direction ();
224225
225226 // Calc windspeed
226- // windspeedmph = get_wind_speed(); //This is calculated in the main loop
227+ // windspeedmph = get_wind_speed(); //This is calculated in the main loop on line 179
227228
228229 // Calc windgustmph
229230 // Calc windgustdir
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ void printWeather()
442442
443443 Serial.print (" ,lat=" );
444444 Serial.print (gps.location .lat (), 6 );
445- Serial.print (" ,lat =" );
445+ Serial.print (" ,lng =" );
446446 Serial.print (gps.location .lng (), 6 );
447447 Serial.print (" ,altitude=" );
448448 Serial.print (gps.altitude .meters ());
You can’t perform that action at this time.
0 commit comments