Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: DeepCover Embedded Security in IoT MaximInterface MAXREFDES155#
Diff: Links/Sleep.hpp
- Revision:
- 5:a8c83a2e6fa4
- Parent:
- 0:f77ad7f72d04
--- 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