Fork of https://os.mbed.com/users/okini3939/code/WeatherMeters/

Files at this revision

API Documentation at this revision

Comitter:
JohnnyK
Date:
Tue Aug 02 09:09:24 2022 +0000
Parent:
2:6a62f29b1bb5
Commit message:
Upgrade for MbedOs6+

Changed in this revision

WeatherMeters.cpp Show annotated file Show diff for this revision Revisions of this file
WeatherMeters.h Show annotated file Show diff for this revision Revisions of this file
diff -r 6a62f29b1bb5 -r ea2957562459 WeatherMeters.cpp
--- a/WeatherMeters.cpp	Fri Jun 03 14:34:54 2011 +0000
+++ b/WeatherMeters.cpp	Tue Aug 02 09:09:24 2022 +0000
@@ -40,9 +40,9 @@
     }
 
     mode = w_mode;
-    int01.fall(this, &WeatherMeters::int_anemometer);
-    int02.fall(this, &WeatherMeters::int_raingauge);
-    ticker01.attach(this, &WeatherMeters::int_timer, 0.25); 
+    int01.fall(callback(this,&WeatherMeters::int_anemometer));
+    int02.fall(callback(this,&WeatherMeters::int_raingauge));
+    ticker01.attach(callback(this,&WeatherMeters::int_timer), 250ms); 
 }
 
 /**
diff -r 6a62f29b1bb5 -r ea2957562459 WeatherMeters.h
--- a/WeatherMeters.h	Fri Jun 03 14:34:54 2011 +0000
+++ b/WeatherMeters.h	Tue Aug 02 09:09:24 2022 +0000
@@ -26,7 +26,7 @@
 /**
  * @brief WeatherMeters class
  */
-class WeatherMeters : public Base {
+class WeatherMeters{
 public:
     WeatherMeters(PinName p_anemometer, PinName p_windvane, PinName p_raingauge, Weather_mode w_mode = Weather_auto);