mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ieee802154): fix the issue of not receiving packets when RSSI is positive in esp32h2
This commit is contained in:
parent
a45478abc6
commit
c9ead16682
@ -1 +1 @@
|
|||||||
Subproject commit bf6003e60c8bf7205ff16db660df7d7022a284d1
|
Subproject commit 98617ae683c7456706c7de6e27b7f0355c77dc9b
|
@ -12,3 +12,5 @@
|
|||||||
#define IEEE802154_TXPOWER_VALUE_MAX 20
|
#define IEEE802154_TXPOWER_VALUE_MAX 20
|
||||||
#define IEEE802154_TXPOWER_VALUE_MIN -15
|
#define IEEE802154_TXPOWER_VALUE_MIN -15
|
||||||
#define IEEE802154_TXPOWER_INDEX_MIN 3
|
#define IEEE802154_TXPOWER_INDEX_MIN 3
|
||||||
|
|
||||||
|
#define IEEE802154_RSSI_COMPENSATION_VALUE 0
|
||||||
|
@ -12,3 +12,5 @@
|
|||||||
#define IEEE802154_TXPOWER_VALUE_MAX 20
|
#define IEEE802154_TXPOWER_VALUE_MAX 20
|
||||||
#define IEEE802154_TXPOWER_VALUE_MIN -24
|
#define IEEE802154_TXPOWER_VALUE_MIN -24
|
||||||
#define IEEE802154_TXPOWER_INDEX_MIN 0
|
#define IEEE802154_TXPOWER_INDEX_MIN 0
|
||||||
|
|
||||||
|
#define IEEE802154_RSSI_COMPENSATION_VALUE 10
|
||||||
|
@ -151,7 +151,7 @@ static void ieee802154_rx_frame_info_update(void)
|
|||||||
uint8_t lqi = s_rx_frame[s_rx_index][len];
|
uint8_t lqi = s_rx_frame[s_rx_index][len];
|
||||||
|
|
||||||
s_rx_frame_info[s_rx_index].channel = ieee802154_freq_to_channel(ieee802154_ll_get_freq());
|
s_rx_frame_info[s_rx_index].channel = ieee802154_freq_to_channel(ieee802154_ll_get_freq());
|
||||||
s_rx_frame_info[s_rx_index].rssi = rssi;
|
s_rx_frame_info[s_rx_index].rssi = rssi + IEEE802154_RSSI_COMPENSATION_VALUE;
|
||||||
s_rx_frame_info[s_rx_index].lqi = lqi;
|
s_rx_frame_info[s_rx_index].lqi = lqi;
|
||||||
|
|
||||||
s_recent_rx_frame_info_index = s_rx_index;
|
s_recent_rx_frame_info_index = s_rx_index;
|
||||||
|
Loading…
Reference in New Issue
Block a user