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:
 - 87:814e89e853a2
 - Parent:
 - 85:416f8bbbdf54
 
--- a/mbed/jsonrpc/RpcPortIn.cpp	Fri Jul 11 01:44:20 2014 +0000
+++ b/mbed/jsonrpc/RpcPortIn.cpp	Sun Jul 20 12:53:02 2014 +0000
@@ -6,13 +6,13 @@
     public:
         static NyLPC_TBool new1(const union NyLPC_TJsonRpcParserResult* i_rpc,void* i_param)
         {
-        	//ud
+        	//uu
             ModJsonRpc* mod=((ModJsonRpc::TcJsonRpcEx_t*)i_param)->cppmod_ptr;
             unsigned int port;
-            int mask;
+            unsigned int mask;
             if(getParamUInt(mod,i_rpc,port,0)){
-                if(getParamInt(mod,i_rpc,mask,1)){
-                 	addNewObjectBatch(mod,i_rpc->method.id,new ModJsonRpc::RpcObject<PortIn>(new PortIn(portId2PortName(port),mask)));
+                if(getParamUInt(mod,i_rpc,mask,1)){
+                 	addNewObjectBatch(mod,i_rpc->method.id,new ModJsonRpc::RpcObject<PortIn>(new PortIn(portId2PortName(port),(int)mask)));
                 }
             }
             return NyLPC_TBool_TRUE;
@@ -33,7 +33,7 @@
 
 const static struct NyLPC_TJsonRpcMethodDef func_table[]=
 {
-    { "_new1"	,"ud"   ,PortInHandler::new1},
+    { "_new1"	,"uu"   ,PortInHandler::new1},
     { "read"	,"d"	,PortInHandler::read},
     { NULL      ,NULL   ,NULL}
 };
    