File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2113,15 +2113,12 @@ class Gap {
2113
2113
* @note All restrictions from setScanParams(uint16_t, uint16_t, uint16_t, bool) apply.
2114
2114
*/
2115
2115
ble_error_t setScanParams (const GapScanningParams& scanningParams) {
2116
- ble_error_t rc;
2117
- if (((rc = _scanningParams.setInterval (scanningParams.getInterval ())) == BLE_ERROR_NONE) &&
2118
- ((rc = _scanningParams.setWindow (scanningParams.getWindow ())) == BLE_ERROR_NONE) &&
2119
- ((rc = _scanningParams.setTimeout (scanningParams.getTimeout ())) == BLE_ERROR_NONE)) {
2120
- _scanningParams.setActiveScanning (scanningParams.getActiveScanning ());
2121
- return BLE_ERROR_NONE;
2122
- }
2123
-
2124
- return rc;
2116
+ return setScanParams (
2117
+ scanningParams.getInterval (),
2118
+ scanningParams.getWindow (),
2119
+ scanningParams.getTimeout (),
2120
+ scanningParams.getActiveScanning ()
2121
+ );
2125
2122
}
2126
2123
2127
2124
/* *
You can’t perform that action at this time.
0 commit comments