summaryrefslogtreecommitdiff
path: root/rose.erl
diff options
context:
space:
mode:
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.