Skip to content

Commit e8c80d4

Browse files
fix(ble): fixed ble controller issues on ESP32-H2
1 parent c038e38 commit e8c80d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/bt/controller/esp32h2/bt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ extern void r_ble_rtc_wake_up_state_clr(void);
126126
extern int os_msys_init(void);
127127
extern void os_msys_deinit(void);
128128
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
129-
extern const sleep_retention_entries_config_t *esp_ble_mac_retention_link_get(uint8_t *size, uint8_t extra);
129+
extern sleep_retention_entries_config_t *r_esp_ble_mac_retention_link_get(uint8_t *size, uint8_t extra);
130130
extern void r_esp_ble_set_wakeup_overhead(uint32_t overhead);
131131
#endif /* CONFIG_FREERTOS_USE_TICKLESS_IDLE */
132132
extern void r_esp_ble_change_rtc_freq(uint32_t freq);
@@ -555,7 +555,7 @@ static esp_err_t sleep_modem_ble_mac_retention_init(void *arg)
555555
{
556556
uint8_t size;
557557
int extra = *(int *)arg;
558-
const sleep_retention_entries_config_t *ble_mac_modem_config = esp_ble_mac_retention_link_get(&size, extra);
558+
sleep_retention_entries_config_t *ble_mac_modem_config = r_esp_ble_mac_retention_link_get(&size, extra);
559559
esp_err_t err = sleep_retention_entries_create(ble_mac_modem_config, size, REGDMA_LINK_PRI_BT_MAC_BB, SLEEP_RETENTION_MODULE_BLE_MAC);
560560
if (err == ESP_OK) {
561561
ESP_LOGI(NIMBLE_PORT_LOG_TAG, "Modem BLE MAC retention initialization");

0 commit comments

Comments
 (0)