When a generic mesh model message is received "bt_mesh_generic_server_cb_evt_to_btc" copies the

ctx values to cb_params for the mesh stack.

recv_rssi was not copied.

This means the rssi could not be read when receiving generic server messages using ble_mesh.
pull/5628/head
mbroek 2020-06-26 11:12:28 +02:00 zatwierdzone przez lly
rodzic 8800fe5241
commit 2b80cb6883
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -742,6 +742,7 @@ void bt_mesh_generic_server_cb_evt_to_btc(u8_t evt_type,
cb_params.ctx.recv_ttl = ctx->recv_ttl; cb_params.ctx.recv_ttl = ctx->recv_ttl;
cb_params.ctx.recv_op = ctx->recv_op; cb_params.ctx.recv_op = ctx->recv_op;
cb_params.ctx.recv_dst = ctx->recv_dst; cb_params.ctx.recv_dst = ctx->recv_dst;
cb_params.ctx.recv_rssi = ctx->recv_rssi;
if (val && len) { if (val && len) {
length = (len <= sizeof(cb_params.value)) ? len : sizeof(cb_params.value); length = (len <= sizeof(cb_params.value)) ? len : sizeof(cb_params.value);