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/RpcPortIn.cpp
- Revision:
- 85:416f8bbbdf54
- Parent:
- 78:8cdb8fc7eda8
- Child:
- 87:814e89e853a2
--- a/mbed/jsonrpc/RpcPortIn.cpp	Fri Jul 04 02:10:40 2014 +0000
+++ b/mbed/jsonrpc/RpcPortIn.cpp	Fri Jul 04 14:28:46 2014 +0000
@@ -7,7 +7,7 @@
         static NyLPC_TBool new1(const union NyLPC_TJsonRpcParserResult* i_rpc,void* i_param)
         {
         	//ud
-            ModJsonRpc* mod=(ModJsonRpc*)i_param;
+            ModJsonRpc* mod=((ModJsonRpc::TcJsonRpcEx_t*)i_param)->cppmod_ptr;
             unsigned int port;
             int mask;
             if(getParamUInt(mod,i_rpc,port,0)){
@@ -20,7 +20,7 @@
         static NyLPC_TBool read(const union NyLPC_TJsonRpcParserResult* i_rpc,void* i_param)
         {
         	//d return d
-            ModJsonRpc* mod=(ModJsonRpc*)i_param;
+            ModJsonRpc* mod=((ModJsonRpc::TcJsonRpcEx_t*)i_param)->cppmod_ptr;
             PortIn* inst=(PortIn*)getObjectBatch(mod,i_rpc);
 			if(inst!=NULL){
 				mod->putResult(i_rpc->method.id,"%d",(int)(inst->read()));
    