From 8f693d4af808658c292ee2e82e873beae099dcb7 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 20 Aug 2023 11:50:36 +0200 Subject: [PATCH] sx128x: fix connection update --- chipset/sx128x/ll_sx1280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chipset/sx128x/ll_sx1280.c b/chipset/sx128x/ll_sx1280.c index 0bf6c4274..63404a69e 100644 --- a/chipset/sx128x/ll_sx1280.c +++ b/chipset/sx128x/ll_sx1280.c @@ -1133,7 +1133,7 @@ static void ll_handle_control(ll_pdu_t * rx_packet){ ctx.channel_map_update_pending = true; break; case PDU_DATA_LLCTRL_TYPE_CONN_UPDATE_IND: - ctx.conn_param_update_win_size = tx_packet->payload[1]; + ctx.conn_param_update_win_size = rx_packet->payload[1]; ctx.conn_param_update_win_offset = little_endian_read_16(rx_packet->payload, 2); ctx.conn_param_update_interval_1250us = little_endian_read_16(rx_packet->payload, 4); ctx.conn_param_update_latency = little_endian_read_16(rx_packet->payload, 6);