4 years, 9 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 /media/uploads/ssanto/test.jpg

1 Answer

4 years, 9 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 ();

Accepted Answer

Thank you Wim Huiskamp.. my problem is fixed :D

posted by Susanto . 26 Jan 2017