File tree 2 files changed +3
-2
lines changed
Weather_Shield_Weather_Station
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ void loop()
176
176
177
177
// Calc the wind speed and direction every second for 120 second to get 2 minute average
178
178
float currentSpeed = get_wind_speed ();
179
+ windspeedmph = currentSpeed; // update global variable for windspeed when using the printWeather() function
179
180
// float currentSpeed = random(5); //For testing
180
181
int currentDirection = get_wind_direction ();
181
182
windspdavg[seconds_2m] = (int )currentSpeed;
@@ -223,7 +224,7 @@ void calcWeather()
223
224
winddir = get_wind_direction ();
224
225
225
226
// 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
227
228
228
229
// Calc windgustmph
229
230
// Calc windgustdir
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ void printWeather()
442
442
443
443
Serial.print (" ,lat=" );
444
444
Serial.print (gps.location .lat (), 6 );
445
- Serial.print (" ,lat =" );
445
+ Serial.print (" ,lng =" );
446
446
Serial.print (gps.location .lng (), 6 );
447
447
Serial.print (" ,altitude=" );
448
448
Serial.print (gps.altitude .meters ());
You can’t perform that action at this time.
0 commit comments