mirror of https://github.com/ARMmbed/mbed-os.git
reuse existing call
parent
4b1ce49ee1
commit
399191fc9c
|
|
@ -2113,15 +2113,12 @@ public:
|
||||||
* @note All restrictions from setScanParams(uint16_t, uint16_t, uint16_t, bool) apply.
|
* @note All restrictions from setScanParams(uint16_t, uint16_t, uint16_t, bool) apply.
|
||||||
*/
|
*/
|
||||||
ble_error_t setScanParams(const GapScanningParams& scanningParams) {
|
ble_error_t setScanParams(const GapScanningParams& scanningParams) {
|
||||||
ble_error_t rc;
|
return setScanParams(
|
||||||
if (((rc = _scanningParams.setInterval(scanningParams.getInterval())) == BLE_ERROR_NONE) &&
|
scanningParams.getInterval(),
|
||||||
((rc = _scanningParams.setWindow(scanningParams.getWindow())) == BLE_ERROR_NONE) &&
|
scanningParams.getWindow(),
|
||||||
((rc = _scanningParams.setTimeout(scanningParams.getTimeout())) == BLE_ERROR_NONE)) {
|
scanningParams.getTimeout(),
|
||||||
_scanningParams.setActiveScanning(scanningParams.getActiveScanning());
|
scanningParams.getActiveScanning()
|
||||||
return BLE_ERROR_NONE;
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue