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 12d2347 commit 2d2aac0Copy full SHA for 2d2aac0
components/bt/controller/esp32/bt.c
@@ -965,7 +965,7 @@ static void btdm_sleep_enter_phase1_wrapper(uint32_t lpcycles)
965
assert(us_to_sleep > BTDM_MIN_TIMER_UNCERTAINTY_US);
966
// allow a maximum time uncertainty to be about 488ppm(1/2048) at least as clock drift
967
// and set the timer in advance
968
- uint32_t uncertainty = (us_to_sleep >> 11);
+ uint32_t uncertainty = (us_to_sleep / 1000);
969
if (uncertainty < BTDM_MIN_TIMER_UNCERTAINTY_US) {
970
uncertainty = BTDM_MIN_TIMER_UNCERTAINTY_US;
971
}
0 commit comments