Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: MBEDCurrent.cpp
- Revision:
- 135:7f3f963cd159
- Parent:
- 103:4b97555bbdfa
- Child:
- 192:54b758a8eaaa
--- a/MBEDCurrent.cpp Fri Mar 28 16:24:12 2014 +0000 +++ b/MBEDCurrent.cpp Fri Mar 28 17:49:10 2014 +0000 @@ -31,5 +31,5 @@ // update our value void MBEDCurrent::update() { float current = 1.5; // fixed for now... - if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1f",current); + if (this->resource() != NULL && this->resource()->getValuePointer() != NULL) sprintf(this->resource()->getValuePointer(),"%.1f",current); }