Skip to content

Commit

Permalink
nrf_rpc: Adapt to API changes in zcbor 0.8.0
Browse files Browse the repository at this point in the history
More arguments to zcbor_new_decode_state().

Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad committed Jan 26, 2024
1 parent a9a80f3 commit 16be9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nrf_rpc/nrf_rpc_cbor.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int nrf_rpc_cbor_cmd_rsp(const struct nrf_rpc_group *group, uint8_t cmd,

if (err >= 0) {
zcbor_new_decode_state(ctx->zs, ARRAY_SIZE(ctx->zs),
ctx->out_packet, rsp_size, NRF_RPC_MAX_PARAMETERS);
ctx->out_packet, rsp_size, NRF_RPC_MAX_PARAMETERS, NULL, 0);
}

return err;
Expand Down Expand Up @@ -177,7 +177,7 @@ void _nrf_rpc_cbor_proxy_handler(const struct nrf_rpc_group *group, const uint8_
(struct _nrf_rpc_cbor_decoder *)handler_data;

zcbor_new_decode_state(ctx.zs, ARRAY_SIZE(ctx.zs), ctx.out_packet, len,
NRF_RPC_MAX_PARAMETERS);
NRF_RPC_MAX_PARAMETERS, NULL, 0);

return cbor_handler->handler(group, &ctx, cbor_handler->handler_data);
}
Expand Down

0 comments on commit 16be9f3

Please sign in to comment.