From 756e86da71a6506c84b2ba3307ef63bd2bdef914 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Tue, 16 Jun 2015 12:46:56 +0100 Subject: [PATCH] BLE: move scanningParams to a better location --- public/BLE.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/BLE.h b/public/BLE.h index a6967fd..128729f 100644 --- a/public/BLE.h +++ b/public/BLE.h @@ -719,7 +719,7 @@ public: void terminateServiceDiscovery(void); public: - BLE() : transport(createBLEInstance()), advParams(), advPayload(), scanResponse(), needToSetAdvPayload(true), scanningParams() { + BLE() : transport(createBLEInstance()), advParams(), advPayload(), scanningParams(), scanResponse(), needToSetAdvPayload(true) { advPayload.clear(); scanResponse.clear(); } @@ -729,14 +729,13 @@ private: GapAdvertisingParams advParams; GapAdvertisingData advPayload; + GapScanningParams scanningParams; GapAdvertisingData scanResponse; /* Accumulation of AD structures in the advertisement payload should * eventually result in a call to the target's setAdvertisingData() before * the server begins advertising. This flag marks the status of the pending update.*/ bool needToSetAdvPayload; - - GapScanningParams scanningParams; }; typedef BLE BLEDevice; /* DEPRECATED. This type alias is retained for the sake of compatibilty with older