mbed RPC analogin working
Fork of mbed-rpc by
Diff: Arguments.cpp
- Revision:
- 6:74c79d7abb89
- Parent:
- 1:6919289a5946
--- a/Arguments.cpp Mon Aug 19 18:37:40 2013 +0300 +++ b/Arguments.cpp Sun Jul 27 15:38:21 2014 +0000 @@ -136,5 +136,10 @@ separator(); reply += sprintf(reply, "%.17g", f); } +// put by me to accomodate read_u16() of AnalogIn +template<> void Reply::putData<unsigned short>(unsigned short uint16) { + separator(); + reply += sprintf(reply, "%u", uint16); +} } // namespace mbed