mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-25 23:13:30 +00:00
nimble/ll/dtm: Minor remainder calculation fix
This commit is contained in:
@@ -2311,7 +2311,6 @@ pri_phy_valid(uint8_t phy)
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static bool
|
||||
|
||||
@@ -147,9 +147,9 @@ ble_ll_dtm_set_next(struct dtm_ctx *ctx)
|
||||
|
||||
sch->start_time += ctx->itvl_ticks;
|
||||
sch->remainder += ctx->itvl_rem_usec;
|
||||
if (sch->remainder > 30) {
|
||||
if (sch->remainder >= 31) {
|
||||
sch->start_time++;
|
||||
sch->remainder -= 30;
|
||||
sch->remainder -= 31;
|
||||
}
|
||||
|
||||
sch->start_time -= g_ble_ll_sched_offset_ticks;
|
||||
|
||||
Reference in New Issue
Block a user