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 /cmdiface.erl | |
parent | 859179718904a1824082fdbbf77192bd1ce762e7 (diff) | |
download | local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.gz local-26f9d9ce2650dd225e011fec49641572f3b85796.tar.bz2 local-26f9d9ce2650dd225e011fec49641572f3b85796.zip |
Global emu debugged
Diffstat (limited to 'cmdiface.erl')
-rw-r--r-- | cmdiface.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmdiface.erl b/cmdiface.erl index 0b7e84c..3113c03 100644 --- a/cmdiface.erl +++ b/cmdiface.erl @@ -16,10 +16,10 @@ reg_feedbackOps(Addr,Name,T,MsgReq,MsgRes,To) -> io:format("Logging new command: ~p ~n",[Name]), - Init=fun () -> rsbusserv ! {devicemon,Addr,MsgReq} end, + Init=fun () -> rsbusserv ! {devicemon,comm,Addr,MsgReq} end, Exit= fun () -> - rsbusserv ! {devicemon,Addr,[]} + rsbusserv ! {devicemon,comm,Addr,[]} end, Pid = spawn(?MODULE,res_manip,[Init,Exit,To]), Call = @@ -35,6 +35,7 @@ invoke_cmd(Addr,Name,MsgReq) -> res_manip(Init,Exit,To) -> Init(), receive - Res -> To ! Res + {stat,_Type,Stat} -> To ! {self(),comm,Stat}; + {error,_Cause} -> ok end, Exit().
\ No newline at end of file |