Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 10 months ago.
Reset RainFall
I have some problems to reset the rainfall and max windspeed.. I use the code from https://developer.mbed.org/users/AdamGreen/code/WeatherMeters/docs/457832d52954/classAFP_1_1CWeatherMeters.html .... instructions there, to reset the rainfall using a statement void Reset () ... but output in TeraTerm not always zero.. any one can help me?? this is my code.. i use sparkfun weathermether and nucleo 152RE
1 Answer
7 years, 10 months ago.
The call to reset is wrong. You just declare a new empty function called "Reset" in your code. You should instead call the Reset() method of the WheatherMeter object. Try
WheatherMeters.Reset ();