mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ble_mesh: Fix client local parameters not initialized
This commit is contained in:
parent
713581ae87
commit
77bb7806a0
@ -178,10 +178,10 @@ static s32_t bt_mesh_client_calc_timeout(struct bt_mesh_msg_ctx *ctx,
|
|||||||
struct net_buf_simple *msg,
|
struct net_buf_simple *msg,
|
||||||
u32_t opcode, s32_t timeout)
|
u32_t opcode, s32_t timeout)
|
||||||
{
|
{
|
||||||
s32_t seg_retrans_to, duration, time;
|
s32_t seg_retrans_to = 0, duration = 0, time = 0;
|
||||||
u8_t seg_count, seg_retrans_num;
|
u8_t seg_count = 0, seg_retrans_num = 0;
|
||||||
u8_t mic_size;
|
bool need_seg = false;
|
||||||
bool need_seg;
|
u8_t mic_size = 0;
|
||||||
|
|
||||||
if (msg->len > UNSEG_ACCESS_MSG_MAX_LEN || ctx->send_rel) {
|
if (msg->len > UNSEG_ACCESS_MSG_MAX_LEN || ctx->send_rel) {
|
||||||
need_seg = true; /* Needs segmentation */
|
need_seg = true; /* Needs segmentation */
|
||||||
|
Loading…
Reference in New Issue
Block a user