File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
connectivity/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,16 @@ bool is_preferred_connection_params_valid(const Gap::PreferredConnectionParams_t
88
88
return false ;
89
89
}
90
90
91
- if (!is_in_range (params->slaveLatency , slave_latency_min, slave_latency_max) == false ) {
91
+ if (!is_in_range (params->slaveLatency , slave_latency_min, slave_latency_max)) {
92
92
return false ;
93
93
}
94
94
95
- if (( is_in_range (params->maxConnectionInterval , connection_interval_min, connection_interval_max) == false ) &&
95
+ if (! is_in_range (params->maxConnectionInterval , connection_interval_min, connection_interval_max) &&
96
96
(params->maxConnectionInterval != 0xFFFF )) {
97
97
return false ;
98
98
}
99
99
100
- if (( is_in_range (params->minConnectionInterval , connection_interval_min, params->maxConnectionInterval ) == false ) &&
100
+ if (! is_in_range (params->minConnectionInterval , connection_interval_min, params->maxConnectionInterval ) &&
101
101
(params->minConnectionInterval != 0xFFFF )) {
102
102
return false ;
103
103
}
@@ -106,10 +106,7 @@ bool is_preferred_connection_params_valid(const Gap::PreferredConnectionParams_t
106
106
return true ;
107
107
}
108
108
109
- if ((
110
- is_in_range (params->connectionSupervisionTimeout , supervision_timeout_min, supervision_timeout_max) ==
111
- false
112
- )) {
109
+ if (!is_in_range (params->connectionSupervisionTimeout , supervision_timeout_min, supervision_timeout_max)) {
113
110
return false ;
114
111
}
115
112
You can’t perform that action at this time.
0 commit comments