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: ResourceFactory.cpp
- Revision:
- 55:63350425d704
- Parent:
- 47:fa96ddc36f04
- Child:
- 114:bd38ad417d6a
--- a/ResourceFactory.cpp Sun Mar 02 17:54:57 2014 +0000 +++ b/ResourceFactory.cpp Sun Mar 02 18:07:26 2014 +0000 @@ -107,3 +107,9 @@ return cb; } + // min function + int ResourceFactory::min(int value1,int value2) { + if (value1 < value2) return value1; + return value2; + } +