Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
87:814e89e853a2
Parent:
85:416f8bbbdf54
--- a/mbed/jsonrpc/RpcAnalogOut.cpp	Fri Jul 11 01:44:20 2014 +0000
+++ b/mbed/jsonrpc/RpcAnalogOut.cpp	Sun Jul 20 12:53:02 2014 +0000
@@ -46,7 +46,7 @@
             if(inst!=NULL){
             	unsigned int v;
 				if(getParamUInt(mod,i_rpc,v,1)){
-					inst->write((unsigned int)v);
+					inst->write_u16((unsigned short)v);
 					mod->putResult(i_rpc->method.id);
 				}
 			}