Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: public/GapScanningParams.h
- Revision:
- 416:8764654f61fc
- Parent:
- 400:868801af787c
- Child:
- 443:a41e2aa7d240
--- a/public/GapScanningParams.h Mon Jun 08 10:41:18 2015 +0100
+++ b/public/GapScanningParams.h Mon Jun 08 10:41:18 2015 +0100
@@ -49,9 +49,6 @@
if (_window > SCAN_WINDOW_MAX) {
_window = SCAN_WINDOW_MAX;
}
- if (_timeout > SCAN_TIMEOUT_MAX) {
- _timeout = SCAN_TIMEOUT_MAX;
- }
}
ble_error_t setInterval(uint16_t newIntervalInMS) {
@@ -75,12 +72,8 @@
}
ble_error_t setTimeout(uint16_t newTimeout) {
- if (newTimeout <= SCAN_TIMEOUT_MAX) {
- _timeout = newTimeout;
- return BLE_ERROR_NONE;
- }
-
- return BLE_ERROR_PARAM_OUT_OF_RANGE;
+ _timeout = newTimeout;
+ return BLE_ERROR_NONE;
}
void setActiveScanning(bool activeScanning) {
