mbed RPC analogin working

Dependents:   RPC_Serial_new_v2

Fork of mbed-rpc by mbed official

Files at this revision

API Documentation at this revision

Comitter:
bhavik
Date:
Sun Jul 27 15:38:21 2014 +0000
Parent:
5:4490a0d9cb2a
Commit message:
biruu

Changed in this revision

Arguments.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4490a0d9cb2a -r 74c79d7abb89 Arguments.cpp
--- 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