This is an automated email from the ASF dual-hosted git repository.

vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new a472cf5  controller/ble_ll_scan: For callouts number of ticks are used
     new e49a145  Merge pull request #1010 from vrahane/nimble_scanning_fix
a472cf5 is described below

commit a472cf519c1984700bb201539c8697b0e7aff0f3
Author: vrahane <vi...@proxy.com>
AuthorDate: Tue Aug 10 11:54:45 2021 -0700

    controller/ble_ll_scan: For callouts number of ticks are used
---
 nimble/controller/src/ble_ll_scan.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/nimble/controller/src/ble_ll_scan.c 
b/nimble/controller/src/ble_ll_scan.c
index 44bb878..e67d806 100644
--- a/nimble/controller/src/ble_ll_scan.c
+++ b/nimble/controller/src/ble_ll_scan.c
@@ -3431,20 +3431,16 @@ ble_ll_set_ext_scan_params(const uint8_t *cmdbuf, 
uint8_t len)
 static void
 ble_ll_scan_duration_period_timers_restart(struct ble_ll_scan_sm *scansm)
 {
-    ble_npl_time_t now;
-
-    now = ble_npl_time_get();
-
     ble_npl_callout_stop(&scansm->duration_timer);
     ble_npl_callout_stop(&scansm->period_timer);
 
     if (scansm->duration_ticks) {
         ble_npl_callout_reset(&scansm->duration_timer,
-                                                now + scansm->duration_ticks);
+                              scansm->duration_ticks);
 
         if (scansm->period_ticks) {
             ble_npl_callout_reset(&scansm->period_timer,
-                                                    now + 
scansm->period_ticks);
+                                  scansm->period_ticks);
         }
     }
 }

Reply via email to