summaryrefslogtreecommitdiff
path: root/src/pbx_rose.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/pbx_rose.erl')
-rw-r--r--src/pbx_rose.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pbx_rose.erl b/src/pbx_rose.erl
index 0447d8b..6328226 100644
--- a/src/pbx_rose.erl
+++ b/src/pbx_rose.erl
@@ -3,7 +3,7 @@
-export([init/1, handle_event/2, handle_call/2, handle_info/2,
terminate/2, code_change/3]).
--export([decode/1, invoke/2]).
+-export([invoke/2]).
-include("opcodes.hrl").
-include("Remote-Operations-Generic-ROS-PDUs.hrl").
@@ -92,8 +92,8 @@ handle_event({returnResult, ReturnResult = #'ReturnResult'{}}, _State) ->
handle_event({returnError, ReturnError = #'ReturnError'{}}, _State) ->
io:format("ReturnError ~p~n", [ReturnError]),
{ok, ReturnError#'ReturnError'.invokeId};
-handle_event({reject, Reject = #'Reject'{}}, _State) ->
- io:format("Reject ~p~n", [Reject]),
+handle_event({reject, Reject = #'Reject'{problem = Problem}}, _State) ->
+ io:format("Reject ~p~n", [Problem]),
{ok, Reject#'Reject'.invokeId};
handle_event(_Event, State) ->
{ok, State}.