diff options
author | Ulf Wiger <ulf@feuerlabs.com> | 2015-12-15 17:54:29 -0800 |
---|---|---|
committer | Ulf Wiger <ulf@feuerlabs.com> | 2015-12-15 17:54:29 -0800 |
commit | ce9b50c4d6b9710f67300b5a848a10aa77961d36 (patch) | |
tree | e51da386c0cde86af2a3d2511fe4841e3414064a /components/dlink_bt/src/dlink_bt_rpc.erl | |
parent | d0da97015667246a6e4a7c7cca335e2082ae1166 (diff) | |
download | rvi_core-ce9b50c4d6b9710f67300b5a848a10aa77961d36.tar.gz |
wrong encoding of 'mod' attr in 'rcv' msg
Diffstat (limited to 'components/dlink_bt/src/dlink_bt_rpc.erl')
-rw-r--r-- | components/dlink_bt/src/dlink_bt_rpc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dlink_bt/src/dlink_bt_rpc.erl b/components/dlink_bt/src/dlink_bt_rpc.erl index c675387..75e7926 100644 --- a/components/dlink_bt/src/dlink_bt_rpc.erl +++ b/components/dlink_bt/src/dlink_bt_rpc.erl @@ -303,7 +303,7 @@ announce_local_service_(CompSpec, Service, Availability) -> process_data(_FromPid, RemoteBTAddr, RemoteChannel, ProtocolMod, Data, CompSpec) -> ?debug("dlink_bt:receive_data(): SetupAddress: {~p, ~p}", [ RemoteBTAddr, RemoteChannel ]), ?debug("dlink_bt:receive_data(): ~p:receive_message(~p)", [ ProtocolMod, Data ]), - Proto = list_to_existing_atom(ProtocolMod), + Proto = binary_to_existing_atom(ProtocolMod, latin1), Proto:receive_message(CompSpec, {RemoteBTAddr, RemoteChannel}, Data), ok. @@ -593,7 +593,7 @@ handle_call({rvi, send_data, [ProtoMod, Service, Data, _DataLinkOpts]}, _From, S ConnPid, [ { ?DLINK_ARG_TRANSACTION_ID, 1 }, { ?DLINK_ARG_CMD, ?DLINK_CMD_RECEIVE }, - { ?DLINK_ARG_MODULE, atom_to_list(ProtoMod) }, + { ?DLINK_ARG_MODULE, atom_to_binary(ProtoMod, latin1) }, { ?DLINK_ARG_DATA, Data } ]), { reply, [ Res ], St} |