Skip to content

Commit 2079383

Browse files
alxelaxnordicjm
authored andcommitted
net: openthread: rpc: using common decoding error handler
Using common decoding error handler for all commands and responses. Signed-off-by: Aleksandr Khromykh <[email protected]>
1 parent 8227c78 commit 2079383

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

subsys/net/openthread/rpc/client/ot_rpc_coap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ const uint8_t *otCoapMessageGetToken(const otMessage *aMessage)
200200
nrf_rpc_decode_buffer(&ctx, token, sizeof(token));
201201

202202
if (!nrf_rpc_decoding_done_and_check(&ot_group, &ctx)) {
203-
nrf_rpc_err(-EBADMSG, NRF_RPC_ERR_SRC_RECV, &ot_group,
204-
OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN, NRF_RPC_PACKET_TYPE_RSP);
203+
ot_rpc_report_rsp_decoding_error(OT_RPC_CMD_COAP_MESSAGE_GET_TOKEN);
205204
}
206205

207206
return token;

0 commit comments

Comments
 (0)