File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
features/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,15 @@ static const uint16_t advertising_interval_max = 0x4000;
44
44
static const uint16_t supervision_timeout_min = 0x000A ;
45
45
static const uint16_t supervision_timeout_max = 0x0C80 ;
46
46
47
+ static const ConnectionParams_t default_connection_params = {
48
+ /* min conn interval */ 50 ,
49
+ /* max conn interval */ 100 ,
50
+ /* slave latency */ 0 ,
51
+ /* supervision timeout */ 600
52
+ };
53
+
54
+ static const GapScanningParams default_scan_params;
55
+
47
56
/*
48
57
* Return true if value is included in the range [lower_bound : higher_bound]
49
58
*/
@@ -490,14 +499,6 @@ ble_error_t GenericGap::connect(
490
499
const ConnectionParams_t* connectionParams,
491
500
const GapScanningParams* scanParams
492
501
) {
493
- ConnectionParams_t default_connection_params = {
494
- /* min conn interval */ 50 ,
495
- /* max conn interval */ 100 ,
496
- /* slave latency */ 0 ,
497
- /* supervision timeout */ 600
498
- };
499
- GapScanningParams default_scan_params;
500
-
501
502
if (connectionParams == NULL ) {
502
503
connectionParams = &default_connection_params;
503
504
}
You can’t perform that action at this time.
0 commit comments