Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_bci_443_v5.3' into 'release/v5.3'
Browse files Browse the repository at this point in the history
fix(bt/controller): Fixed the timeout of wake up timer when using RC OSC (v5.3)

See merge request espressif/esp-idf!33893
  • Loading branch information
Isl2017 committed Oct 9, 2024
2 parents 7046cb3 + 8fa51aa commit 7531d7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/bt/controller/esp32c3/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ static void btdm_sleep_enter_phase1_wrapper(uint32_t lpcycles)
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
// and set the timer in advance
uint32_t uncertainty = (us_to_sleep >> 11);
#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
#if CONFIG_BT_CTRL_MAIN_XTAL_PU_DURING_LIGHT_SLEEP
// recalculate clock drift when Bluetooth using main XTAL during light sleep
if (rtc_clk_slow_src_get() == SOC_RTC_SLOW_CLK_SRC_RC_SLOW) {
uncertainty = us_to_sleep * BTDM_RTC_SLOW_CLK_RC_DRIFT_PERCENT / 100;
}
Expand Down Expand Up @@ -1756,7 +1757,7 @@ esp_power_level_t esp_ble_tx_power_get(esp_ble_power_type_t power_type)
handle = power_type;
}

lvl = (esp_power_level_t)ble_txpwr_get(power_type, handle);
lvl = (esp_power_level_t)ble_txpwr_get(enh_pwr_type, handle);

return lvl;
}
Expand Down

0 comments on commit 7531d7e

Please sign in to comment.