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: IoT_LED_demo ServoTest uWater_Project hackathon ... more
Diff: api/OptionsBuilder.cpp
- Revision:
- 46:cc6076ac5026
- Parent:
- 45:65351ebb7c42
- Child:
- 47:e75750ddc413
--- a/api/OptionsBuilder.cpp Sat Apr 11 22:10:02 2015 +0000
+++ b/api/OptionsBuilder.cpp Sun Apr 12 03:48:37 2015 +0000
@@ -146,6 +146,13 @@
}
// add dynamic resource
+OptionsBuilder &OptionsBuilder::addResource(const DynamicResource *resource)
+{
+ // ensure that the boolean isn't mistaken by the compiler for the obs period...
+ return this->addResource(resource,NSP_DEFAULT_OBS_PERIOD,!(((DynamicResource *)resource)->implementsObservation()));
+}
+
+// add dynamic resource
OptionsBuilder &OptionsBuilder::addResource(const DynamicResource *resource,const bool use_observer)
{
// ensure that the boolean isn't mistaken by the compiler for the obs period...
