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/TaskletResourceObserver.cpp
- Revision:
- 36:1c6c45584c13
- Parent:
- 33:bb7d8c64880f
diff -r f12e61aaf004 -r 1c6c45584c13 api/TaskletResourceObserver.cpp
--- a/api/TaskletResourceObserver.cpp Wed Apr 08 23:03:39 2015 +0000
+++ b/api/TaskletResourceObserver.cpp Thu Apr 09 03:32:11 2015 +0000
@@ -54,8 +54,7 @@
if (event->event_id == me->getTimerID()) {
timer_sys_event_cancel(event->event_id);
me->setEvent(event);
- std::printf("Calling notify()...\r\n");
- if (me->isObserving() == true && me->getResource() != NULL) {
+ if (me->isObserving() == true && me->getResource() != NULL && nsdl_endpoint_is_registered() == true) {
std::printf("Calling observe()...\r\n");
me->getResource()->observe();
}
