diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-05-23 19:06:08 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-05-23 19:06:08 +0800 |
commit | 26f9d9ce2650dd225e011fec49641572f3b85796 (patch) | |
tree | 3f236e2278b038f95d512d062b4e8328d6cfd448 /tcpserv.erl | |
parent | 859179718904a1824082fdbbf77192bd1ce762e7 (diff) | |
download | local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.gz local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.bz2 local-26f9d9ce2650dd225e011fec49641572f3b85796.zip |
Global emu debugged
Diffstat (limited to 'tcpserv.erl')
-rw-r--r-- | tcpserv.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpserv.erl b/tcpserv.erl index 91a25a6..808bcba 100644 --- a/tcpserv.erl +++ b/tcpserv.erl @@ -45,10 +45,10 @@ do_recv(Sock,Pid,To,Cnt) -> %% Message manipulation & dispatch routine manip_msg(Pid,To,[0,0,Addr,MsgReq,MsgRes|Name]) -> %% Operation command dispatch -> Complex(devicemon + Message handler) - cmdiface:reg_feedbackOps(Addr,Name,?DLYTIME,MsgReq,MsgRes,To); + cmdiface:reg_feedbackOps(Addr,Name,?DLYTIME,[MsgReq],[MsgRes],To); manip_msg(Pid,To,[0|Tail]) -> %% Seperation from the next part - devicemon ! [0|Tail]; + devicemon ! {To,comm,[0|Tail]}; manip_msg(Pid,To,[Addr,Cmd|Name]) when Addr<10 -> %% Seperation from the next part cmdiface:invoke_cmd(Addr,Name,[Cmd]); |