From 740b9a23a75d031bce3914d23665368afa522695 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 27 Oct 2015 16:52:59 +0100 Subject: Cleanup --- rose.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rose.erl') 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. -- cgit v1.2.3