fka mod

Fork of BLE_API by Bluetooth Low Energy

Revision:
1186:61ac7e01586f
Parent:
1185:a16103dfb50c
Child:
1187:231e4007429a
diff -r a16103dfb50c -r 61ac7e01586f ble/Gap.h
--- a/ble/Gap.h	Wed Apr 06 19:15:38 2016 +0100
+++ b/ble/Gap.h	Wed Apr 06 19:15:40 2016 +0100
@@ -848,7 +848,6 @@
         return INIT_POLICY_IGNORE_WHITELIST;
     }
 
-
 protected:
     /* Override the following in the underlying adaptation layer to provide the functionality of scanning. */
 
@@ -939,12 +938,8 @@
      * @return BLE_ERROR_NONE if the device started advertising successfully.
      */
     ble_error_t startAdvertising(void) {
-        ble_error_t rc;
         setAdvertisingData(); /* Update the underlying stack. */
-        if ((rc = startAdvertising(_advParams)) == BLE_ERROR_NONE) {
-            state.advertising = 1;
-        }
-        return rc;
+        return startAdvertising(_advParams);
     }
 
     /**