Bkap / BLE_API

Dependents:   BookAndPlug

Fork of BLE_API by Bluetooth Low Energy

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