summaryrefslogtreecommitdiff
path: root/rose.erl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-27 16:52:59 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-10-27 16:52:59 +0100
commit740b9a23a75d031bce3914d23665368afa522695 (patch)
treee8542aff4f7bc5fa0914e9bed4b2e546f939052f /rose.erl
parent282f7b5940870986266bc1761a9d481d080f9745 (diff)
Cleanup
Diffstat (limited to 'rose.erl')
-rw-r--r--rose.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/rose.erl b/rose.erl
index 14af5d9..51a1ec9 100644
--- a/rose.erl
+++ b/rose.erl
@@ -10,9 +10,7 @@ encode(Id, Op, Msg) -> 'Remote-Operations-Generic-ROS-PDUs':encode('ROS',
{returnResult, #'ReturnResult'{invokeId = Id,
result = #'ReturnResult_result'{opcode = Op, result = Msg}}}).
-dispatch(#'Invoke'{invokeId = Id, opcode = Op}) ->
+dispatch({invoke, #'Invoke'{invokeId = Id, opcode = Op}}) ->
case Op of
- {local, 211} ->
- {ok, Status} = rose:encode(Id, Op, <<5,0>>),
- Status
+ {local, 211} -> encode(Id, Op, <<5,0>>)
end.