High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

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) {