mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-04 05:57:23 +00:00
nimble/ll: Fix start time calculations
This commit is contained in:
@@ -1705,9 +1705,9 @@ ble_ll_sched_aux_scan(struct ble_mbuf_hdr *ble_hdr,
|
||||
|
||||
start_time = ble_hdr->beg_cputime + off_ticks;
|
||||
start_time_rem_usecs = ble_hdr->rem_usecs + off_rem_usecs;
|
||||
if (start_time_rem_usecs > 30) {
|
||||
if (start_time_rem_usecs >= 31) {
|
||||
start_time++;
|
||||
start_time_rem_usecs -= 30;
|
||||
start_time_rem_usecs -= 31;
|
||||
}
|
||||
start_time -= g_ble_ll_sched_offset_ticks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user