Skip to content

Commit d536d85

Browse files
committed
Merge pull request #17 from javacasm/master
Bug call getWindSpeed twice get Nan result
2 parents 85618dd + 0ee1b15 commit d536d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/Weather_Shield/Weather_Shield.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void loop()
170170
if(++seconds_2m > 119) seconds_2m = 0;
171171

172172
//Calc the wind speed and direction every second for 120 second to get 2 minute average
173-
float currentSpeed = get_wind_speed();
173+
float currentSpeed = windspeedmph;
174174
//float currentSpeed = random(5); //For testing
175175
int currentDirection = get_wind_direction();
176176
windspdavg[seconds_2m] = (int)currentSpeed;

0 commit comments

Comments
 (0)