nimble/ll: Fix start time calculations

This commit is contained in:
Łukasz Rymanowski
2019-07-12 15:46:32 +02:00
parent d1bcaa11a8
commit cb1137d295
+2 -2
View File
@@ -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;