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.
Fork of BLE_API by
Revision 416:8764654f61fc, committed 2015-06-08
- Comitter:
- rgrover1
- Date:
- Mon Jun 08 10:41:18 2015 +0100
- Parent:
- 415:db8b7c4caa61
- Child:
- 417:b88033a97016
- Commit message:
- Synchronized with git rev 0ff09c61
Author: Rohit Grover
remove un-necessary checks for SCAN_TIMEOUT_MAX
Changed in this revision
| public/GapScanningParams.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
