mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: source/ThreadedResourceObserver.cpp
- Revision:
- 70:d49128903181
- Parent:
- 69:baa167cf771b
- Child:
- 93:9ec5d0fa62dd
--- a/source/ThreadedResourceObserver.cpp Mon Aug 22 19:47:08 2016 +0000 +++ b/source/ThreadedResourceObserver.cpp Mon Aug 22 19:51:07 2016 +0000 @@ -51,10 +51,10 @@ // thread task method void ThreadedResourceObserver::observation_task() { while(true) { - Thread::wait(me->getSleepTime()); - if (me->isObserving() == true && me->getResource() != NULL && me->getResource()->isRegistered() == true) { - DynamicResource *res = me->getResource(); - if (res != NULL) { + Thread::wait(this->getSleepTime()); + if (this->isObserving() == true && this->getResource() != NULL) { + DynamicResource *res = this->getResource(); + if (res != NULL && res->isRegistered() == true) { res->observe(); } }