File tree 1 file changed +2
-2
lines changed
firmware/Weather_Shield_with_GPS
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ void loop()
190
190
191
191
// Calc the wind speed and direction every second for 120 second to get 2 minute average
192
192
float currentSpeed = get_wind_speed ();
193
+ windspeedmph = currentSpeed; // update global variable for windspeed when using the printWeather() function
193
194
// float currentSpeed = random(5); //For testing
194
195
int currentDirection = get_wind_direction ();
195
196
windspdavg[seconds_2m] = (int )currentSpeed;
@@ -249,7 +250,7 @@ void calcWeather()
249
250
winddir = get_wind_direction ();
250
251
251
252
// Calc windspeed
252
- // windspeedmph = get_wind_speed(); //This is calculated in the main loop
253
+ // windspeedmph = get_wind_speed(); //This is calculated in the main loop on line 193
253
254
254
255
// Calc windgustmph
255
256
// Calc windgustdir
@@ -463,4 +464,3 @@ void printWeather()
463
464
464
465
}
465
466
466
-
You can’t perform that action at this time.
0 commit comments