소스 검색

修改

master
SisMaker 4 년 전
부모
커밋
874d3ba600
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -0
      src/ePortMsg.erl
  2. +4
    -4
      src/ePortSrv.erl

+ 1
- 0
src/ePortMsg.erl 파일 보기

@ -9,6 +9,7 @@ port_call(Port, Msg) ->
Port ! {self(), {command, term_to_binary(Msg)}},
receive
{Port, {data, DataBin}} ->
io:format("~p~n", [DataBin]),
{ok, binary_to_term(DataBin)};
{Port, closed} ->
{error, closed};

+ 4
- 4
src/ePortSrv.erl 파일 보기

@ -45,7 +45,7 @@ tt() ->
ignore
end,
ePortMsg:port_call(get(ppp), term_to_binary({$g, 12432, 4324})).
ePortMsg:port_call(get(ppp), {$g, 12432, 4324}).
tt(CmdId) ->
case get(ppp) of
@ -57,13 +57,13 @@ tt(CmdId) ->
end,
case CmdId of
$g ->
ePortMsg:port_call(get(ppp), term_to_binary({CmdId, 12432, 4324}));
ePortMsg:port_call(get(ppp), {CmdId, 12432, 4324});
$u ->
ePortMsg:port_call(get(ppp), term_to_binary({CmdId, 12432, 4324}));
ePortMsg:port_call(get(ppp), {CmdId, 12432, 4324});
$t ->
ignore;
_ ->
ePortMsg:port_call(get(ppp), term_to_binary({CmdId, 12432, 4324}))
ePortMsg:port_call(get(ppp), {CmdId, 12432, 4324})
end.
%%-----------------------------------------------------------------

불러오는 중...
취소
저장