mbed rpc

Dependents:   GSwifi_ap_ws_rpc gba_rpc

Fork of mbed-rpc by mbed official

Files at this revision

API Documentation at this revision

Comitter:
okini3939
Date:
Mon May 12 14:30:23 2014 +0000
Parent:
6:28ff80fd4832
Commit message:
fix supported AnalogOut

Changed in this revision

Arguments.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Arguments.cpp	Mon May 12 03:02:08 2014 +0000
+++ b/Arguments.cpp	Mon May 12 14:30:23 2014 +0000
@@ -98,6 +98,12 @@
     return atof(argv[index]);
 }
 
+template<> unsigned short Arguments::getArg<unsigned short>(void) {
+    index++;
+    char *pEnd;
+    return strtoul(argv[index], &pEnd, 10);
+}
+
 Reply::Reply(char* r) {
     first = true;
     *r = '\0';