Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
Diff: mbed/jsonrpc/RpcAnalogIn.cpp
- Revision:
- 78:8cdb8fc7eda8
- Parent:
- 77:8651d3c19a55
- Child:
- 85:416f8bbbdf54
--- a/mbed/jsonrpc/RpcAnalogIn.cpp Fri Jun 20 15:38:30 2014 +0000
+++ b/mbed/jsonrpc/RpcAnalogIn.cpp Mon Jun 23 04:45:57 2014 +0000
@@ -20,7 +20,8 @@
ModJsonRpc* mod=(ModJsonRpc*)i_param;
AnalogIn* inst=(AnalogIn*)getObjectBatch(mod,i_rpc);
if(inst!=NULL){
- mod->putResult(i_rpc->method.id,"%d",(int)(inst->read_u16()));
+ int v=inst->read_u16();
+ mod->putResult(i_rpc->method.id,"%d",v);
}
return NyLPC_TBool_TRUE;
}
@@ -54,4 +55,3 @@
}
-
