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: MBEDBattery.cpp
- Revision:
- 52:f0b4710c43f9
- Parent:
- 43:361a61395588
- Child:
- 60:76728655fa12
diff -r 73e837ee5aa6 -r f0b4710c43f9 MBEDBattery.cpp --- a/MBEDBattery.cpp Sun Mar 02 02:16:41 2014 +0000 +++ b/MBEDBattery.cpp Sun Mar 02 17:11:33 2014 +0000 @@ -34,5 +34,5 @@ // update our value void MBEDBattery::update() { float bat = battery_pot * 5.0; // Scale 0V - 5.0V - if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1f",bat); + if (this->m_resource != NULL && this->m_resource->getValuePointer() != NULL) sprintf(this->m_resource->getValuePointer(),"%.1fV",bat); }