We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c141c91 commit 8737085Copy full SHA for 8737085
components/bt/controller/esp32c3/bt.c
@@ -781,7 +781,8 @@ static void btdm_sleep_enter_phase1_wrapper(uint32_t lpcycles)
781
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
782
// and set the timer in advance
783
uint32_t uncertainty = (us_to_sleep >> 11);
784
-#if CONFIG_FREERTOS_USE_TICKLESS_IDLE
+#if CONFIG_BT_CTRL_MAIN_XTAL_PU_DURING_LIGHT_SLEEP
785
+ // recalculate clock drift when Bluetooth using main XTAL during light sleep
786
if (rtc_clk_slow_src_get() == SOC_RTC_SLOW_CLK_SRC_RC_SLOW) {
787
uncertainty = us_to_sleep * BTDM_RTC_SLOW_CLK_RC_DRIFT_PERCENT / 100;
788
}
0 commit comments