Skip to content

Commit 2d2aac0

Browse files
committed
change(bt): increase BTDM_MODEM_WAKE_UP_DELAY
1 parent 12d2347 commit 2d2aac0

File tree

1 file changed

+1
-1
lines changed
  • components/bt/controller/esp32

1 file changed

+1
-1
lines changed

components/bt/controller/esp32/bt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ static void btdm_sleep_enter_phase1_wrapper(uint32_t lpcycles)
965965
assert(us_to_sleep > BTDM_MIN_TIMER_UNCERTAINTY_US);
966966
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
967967
// and set the timer in advance
968-
uint32_t uncertainty = (us_to_sleep >> 11);
968+
uint32_t uncertainty = (us_to_sleep / 1000);
969969
if (uncertainty < BTDM_MIN_TIMER_UNCERTAINTY_US) {
970970
uncertainty = BTDM_MIN_TIMER_UNCERTAINTY_US;
971971
}

0 commit comments

Comments
 (0)