Aleksandrs Gumenuks / MaximInterface_Extended

Dependents:   mbed_DS28EC20_GPIO

Revision:
6:a8c83a2e6fa4
Parent:
0:f77ad7f72d04
diff -r caf56f265a13 -r a8c83a2e6fa4 Links/Sleep.hpp
--- a/Links/Sleep.hpp	Fri Jan 19 10:25:02 2018 -0600
+++ b/Links/Sleep.hpp	Wed Jan 23 13:11:04 2019 -0600
@@ -38,10 +38,10 @@
 class Sleep {
 public:
   virtual ~Sleep() {}
-
-  virtual void operator()(int ms) const = 0;
+  virtual void invoke(int ms) const = 0;
+  void operator()(int ms) const { invoke(ms); }
 };
 
 } // namespace MaximInterface
 
-#endif
\ No newline at end of file
+#endif