Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
apalmieri
Date:
Wed Sep 02 14:36:42 2015 +0000
Parent:
107:5cc5ac5bfbbb
Child:
109:9e152b2453bc
Commit message:
Fix issue on Advertising Interval

Changed in this revision

BlueNRGGap.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/BlueNRGGap.cpp	Tue Sep 01 15:27:33 2015 +0000
+++ b/BlueNRGGap.cpp	Wed Sep 02 14:36:42 2015 +0000
@@ -347,9 +347,9 @@
         DEBUG("name=%s\n\r", name);      
     }  
 
-    advtInterval = params.getInterval(); // set advtInterval in case it is not already set by user application    
+    advtInterval = params.getInterval(); // set advtInterval in case it is not already set by user application  
     ret = aci_gap_set_discoverable(params.getAdvertisingType(), // Advertising_Event_Type                                
-        BLUENRG_GAP_ADV_INTERVAL_MIN,   // Adv_Interval_Min
+        advtInterval,   // Adv_Interval_Min
         advtInterval,   // Adv_Interval_Max
         PUBLIC_ADDR, // Address_Type 
         NO_WHITE_LIST_USE,  // Adv_Filter_Policy