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: MBEDVoltage.cpp
- Revision:
- 103:4b97555bbdfa
- Parent:
- 52:f0b4710c43f9
- Child:
- 128:fde8d042a9af
diff -r 432e7450a8fc -r 4b97555bbdfa MBEDVoltage.cpp --- a/MBEDVoltage.cpp Sat Mar 15 05:29:21 2014 +0000 +++ b/MBEDVoltage.cpp Sat Mar 15 05:57:21 2014 +0000 @@ -34,5 +34,5 @@ // update our value void MBEDVoltage::update() { float voltage = voltage_pot.read() * 120.0; // Scale 0V - 120V - if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1fV",voltage); + if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1f",voltage); }